/* ==================== Дизайн-токены (доп. ТЗ Часть 7 — "стиль как у
   существующей админ-панели") — те же переменные/примитивы, что и в
   admin/public/css/style.css, для визуальной согласованности между
   paneladmin.crytalk.ru и tracker.crytalk.ru. Структура интерфейса ниже —
   по референсу (скриншоты Яндекс.Трекера), палитра — своя, CRYTALK. ==================== */
:root {
  --gold: #ffbe3d;
  --gold-soft: #ffd370;
  --dark: #141414;
  --glass-bg: rgba(20, 20, 20, 0.55);
  --glass-bg-light: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.14);
  --text-light: #fdf6e3;
  --text-dim: rgba(253, 246, 227, 0.6);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.35);
  --danger: #ff5d5d;
  --success: #4ade80;
  --warn: #ffb020;
  --info: #4dabf7;
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  background: var(--dark);
  color: var(--text-light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
}
a { color: var(--gold); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.glass {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: var(--radius-md); box-shadow: var(--shadow-glass);
}

.btn { background: var(--gold); color: #1a1400; border: none; border-radius: var(--radius-sm); padding: 10px 18px; font-weight: 600; font-size: 13px; }
.btn:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--text-light); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 8px 14px; font-size: 12.5px; }
.btn-outline:hover { background: var(--glass-bg-light); }
.btn-sm { padding: 5px 10px; font-size: 12px; }

.field, select.field, textarea.field {
  width: 100%; background: var(--glass-bg-light); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text-light); padding: 10px 12px; font-size: 13px; outline: none;
}
.field::placeholder { color: var(--text-dim); }
.field:focus { border-color: var(--gold); }
select option, select optgroup { background: var(--dark); color: var(--text-light); }

.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.empty-state { text-align: center; color: var(--text-dim); padding: 36px 0; font-size: 13px; }
.loading { text-align: center; color: var(--text-dim); padding: 36px 0; }

/* ---------- Модалки/тосты (тот же приём стека, что и в панели) ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-card { width: 480px; max-width: 100%; max-height: 88vh; overflow-y: auto; padding: 26px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-dim); font-size: 20px; }
.modal-row { margin-bottom: 12px; }
.modal-row label { display: block; font-size: 11.5px; color: var(--text-dim); margin-bottom: 5px; }
.modal-row-split { display: flex; gap: 8px; margin-bottom: 12px; }
.modal-row-split > div { flex: 1; }
.modal-row-split label { display: block; font-size: 11.5px; color: var(--text-dim); margin-bottom: 5px; }
.modal-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.toast-container { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; max-width: 320px; }
.toast-success { background: rgba(74,222,128,0.9); color: #06280f; }
.toast-error { background: rgba(255,93,93,0.9); color: #fff; }
.trk-error { color: var(--danger); font-size: 12.5px; min-height: 16px; }

/* ---------- Экран входа (тот же login-card, что и в панели) ---------- */
#login-screen, #login-totp-screen { display: flex; align-items: center; justify-content: center; height: 100%; padding: 20px; background: radial-gradient(circle at 20% 0%, #262218 0%, var(--dark) 55%); }
.login-card { width: 380px; max-width: 100%; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.login-title { font-size: 22px; font-weight: 700; color: var(--gold); text-align: center; }
.login-sub { font-size: 12.5px; color: var(--text-dim); text-align: center; margin-bottom: 6px; }
.login-error { color: var(--danger); font-size: 13px; text-align: center; min-height: 18px; }

/* ==================== Трекер — блочный макет (по референсу: сайдбар с
   иконками-разделами и большой кнопкой создания, дропдаун-заголовок списка,
   фильтры-чипы, таблица, детали задачи с хлебной крошкой + панелью
   параметров справа). ==================== */
#app-screen { display: none; height: 100%; }
.trk-shell { display: flex; height: 100%; }

/* ---------- Сайдбар ---------- */
.trk-sidebar {
  width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 12px; border-right: 1px solid var(--glass-border); background: rgba(0,0,0,0.15);
}
.trk-logo { font-weight: 800; font-size: 16px; color: var(--gold); padding: 0 4px 14px; flex-shrink: 0; }
.trk-logo span { color: var(--text-light); font-weight: 600; }
.trk-create-btn { width: 100%; background: var(--gold); color: #1a1400; border: none; border-radius: var(--radius-sm); padding: 11px; font-weight: 700; font-size: 13.5px; margin-bottom: 14px; flex-shrink: 0; }
.trk-create-btn:hover { opacity: .92; }

.trk-nav-main { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; margin-bottom: 10px; }
.trk-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--text-dim);
  font-size: 13px; font-weight: 500; background: transparent; border: none; text-align: left; width: 100%;
}
.trk-nav-icon { width: 18px; text-align: center; flex-shrink: 0; opacity: .85; }
.trk-nav-item:hover { background: var(--glass-bg-light); color: var(--text-light); }
.trk-nav-item.active { background: rgba(255, 190, 61, 0.15); color: var(--gold); }

.trk-nav-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.trk-nav-title {
  display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); padding: 14px 10px 6px;
}
.trk-nav-add { background: var(--glass-bg-light); border: 1px solid var(--glass-border); border-radius: 50%; width: 18px; height: 18px; color: var(--text-light); font-size: 12px; line-height: 1; }
.trk-nav-section { display: flex; flex-direction: column; gap: 2px; }
.trk-project-key { font-weight: 700; color: var(--gold-soft); font-size: 11px; }
.trk-nav-item.active .trk-project-key { color: var(--gold); }
.trk-count { margin-left: auto; font-size: 10.5px; color: var(--text-dim); background: var(--glass-bg-light); padding: 1px 6px; border-radius: 10px; }
.trk-nav-empty { font-size: 11.5px; color: var(--text-dim); padding: 4px 10px; }

.trk-sidebar-footer { flex-shrink: 0; padding-top: 10px; border-top: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 8px; }
.trk-user { font-size: 12.5px; color: var(--text-dim); padding: 0 2px; }
.trk-user b { color: var(--text-light); display: block; }

/* ---------- Правая часть: топбар + тело ---------- */
.trk-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.trk-topbar { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--glass-border); flex-shrink: 0; }
.trk-search-input { max-width: 380px; }
.trk-search-count { font-size: 11.5px; color: var(--text-dim); flex-shrink: 0; }
.trk-icon-btn-lg {
  position: relative; margin-left: auto; background: var(--glass-bg-light); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text-light); font-size: 16px; width: 34px; height: 34px; flex-shrink: 0;
}
.trk-icon-btn-lg:first-of-type { margin-left: auto; }
.trk-icon-btn-lg + .trk-icon-btn-lg { margin-left: 0; }
.trk-icon-btn-lg:hover { background: rgba(255,190,61,0.12); border-color: rgba(255,190,61,0.4); }
.trk-badge {
  position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff;
  font-size: 9.5px; font-weight: 700; padding: 2px 4px; border-radius: 8px; min-width: 14px; text-align: center;
}

/* Доп. ТЗ Часть 9: сквозной поиск (обращения почты + задачи + сотрудники) —
   обёртка ломает цепочку смежных .trk-icon-btn-lg (та самая margin-left:auto/0
   пара выше), поэтому margin-left:0 расставлен явно и тут. */
.trk-global-search { position: relative; margin-left: 0; }
.trk-global-search .trk-icon-btn-lg { margin-left: 0; }
.trk-global-search-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 320px; z-index: 60;
  background: var(--glass-bg, #1a1a22); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); box-shadow: 0 12px 28px rgba(0,0,0,0.4); padding: 10px;
}
.trk-global-search-panel .field { width: 100%; margin-bottom: 6px; }
#trk-global-search-results { max-height: 320px; overflow-y: auto; }
.trk-search-group-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); padding: 8px 6px 4px; }
.trk-search-result-item { padding: 8px 6px; font-size: 12.5px; color: var(--text-light); cursor: pointer; border-radius: 6px; }
.trk-search-result-item:hover { background: var(--glass-bg-light); }
.trk-search-result-item[data-kind="admin"] { cursor: default; }
.trk-search-result-item[data-kind="admin"]:hover { background: none; }
.trk-search-result-empty { padding: 14px 6px; font-size: 12.5px; color: var(--text-dim); text-align: center; }

.trk-body { flex: 1; display: flex; min-height: 0; }

/* ---------- Список (карточка со своей шапкой — "блочно") ---------- */
.trk-list-pane {
  width: 46%; max-width: 640px; flex-shrink: 0; display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid var(--glass-border); overflow: hidden;
}
.trk-list-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; flex-shrink: 0; }
.trk-list-title-dropdown {
  background: none; border: none; color: var(--text-light); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px;
}
.trk-list-title-dropdown:hover { background: var(--glass-bg-light); }
.trk-chevron { color: var(--text-dim); font-size: 12px; }
.trk-view-switch { display: flex; gap: 2px; background: var(--glass-bg-light); border-radius: var(--radius-sm); padding: 2px; flex-shrink: 0; }
.trk-view-btn { background: transparent; border: none; color: var(--text-dim); font-size: 11.5px; padding: 5px 11px; border-radius: 8px; }
.trk-view-btn.active { background: var(--gold); color: #1a1400; font-weight: 600; }

.trk-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 10px; flex-shrink: 0; }
.trk-chip {
  display: flex; align-items: center; gap: 6px; background: var(--glass-bg-light); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 4px 6px 4px 12px; font-size: 11.5px; color: var(--text-dim);
}
.trk-chip select { background: transparent; border: none; color: var(--text-light); font-size: 11.5px; outline: none; }
.trk-chip select option { background: var(--dark); }

.trk-list-scroll { flex: 1; overflow-y: auto; min-height: 0; padding: 0 8px 8px; }

.trk-priority-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.trk-priority-low { background: var(--text-dim); }
.trk-priority-normal { background: var(--info); }
.trk-priority-high { background: var(--warn); }
.trk-priority-critical { background: var(--danger); }

.trk-status-backlog { background: rgba(253,246,227,0.1); color: var(--text-dim); }
.trk-status-in_progress { background: rgba(77,171,247,0.15); color: var(--info); }
.trk-status-review { background: rgba(255,190,61,0.15); color: var(--gold); }
.trk-status-done { background: rgba(74,222,128,0.15); color: var(--success); }
.trk-status-archive { background: rgba(253,246,227,0.06); color: var(--text-dim); }
/* Статусы обращений почты (те же имена/цвета, что и в admin/public/css/style.css) —
   для блока "Связанные обращения" в карточке задачи (доп. ТЗ Часть 3). */
.badge-status-open { background: rgba(77,171,247,0.15); color: var(--info); }
.badge-status-pending { background: rgba(255,190,61,0.15); color: var(--gold); }
.badge-status-resolved { background: rgba(74,222,128,0.15); color: var(--success); }

/* Строка списка — карточка-блок, не голая строка таблицы */
.trk-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin: 3px 4px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 12.5px; background: var(--glass-bg-light); border: 1px solid transparent; transition: border-color .15s ease;
}
.trk-row:hover { border-color: rgba(255,190,61,0.3); }
.trk-row.active { border-color: var(--gold); background: rgba(255,190,61,0.1); }
.trk-row-key { font-weight: 700; color: var(--gold-soft); flex-shrink: 0; font-size: 11px; background: rgba(255,190,61,0.08); padding: 2px 7px; border-radius: 6px; }
.trk-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.trk-row-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.trk-row-meta { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--text-dim); }
.trk-row-assignee { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk-unassigned { opacity: .5; }
.trk-row-date { margin-left: auto; flex-shrink: 0; }

/* Доска (Kanban) */
.trk-board { display: flex; gap: 10px; height: 100%; overflow-x: auto; padding: 10px; }
.trk-board-col { flex: 0 0 220px; display: flex; flex-direction: column; background: var(--glass-bg-light); border-radius: var(--radius-sm); min-height: 200px; }
.trk-board-col-title { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--text-dim); padding: 8px 10px; text-transform: uppercase; letter-spacing: .02em; }
.trk-board-col-body { flex: 1; padding: 4px 6px; display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.trk-board-col-body.drag-over { background: rgba(255,190,61,0.08); border-radius: var(--radius-sm); }
.trk-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 9px 10px; cursor: pointer; }
.trk-card:hover { border-color: rgba(255,190,61,0.4); }
.trk-card.active { border-color: var(--gold); }
.trk-card.dragging { opacity: .4; }
.trk-card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.trk-card-key { font-size: 10.5px; font-weight: 700; color: var(--gold-soft); }
.trk-card-title { font-size: 12.5px; line-height: 1.3; margin-bottom: 6px; }
.trk-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: var(--text-dim); }
.trk-overdue { border-color: rgba(255,93,93,0.5); }
.trk-overdue-text { color: var(--danger); font-weight: 600; }

/* ---------- Детали задачи ---------- */
.trk-detail-pane { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.trk-breadcrumb-row { display: flex; align-items: center; gap: 10px; padding: 14px 24px 0; flex-shrink: 0; font-size: 12.5px; color: var(--text-dim); }
.trk-breadcrumb-key { font-weight: 700; color: var(--gold); }
.trk-breadcrumb-icon { background: none; border: none; color: var(--text-dim); font-size: 14px; margin-left: 4px; }
.trk-breadcrumb-icon:hover { color: var(--gold); }
.trk-meta-line { padding: 4px 24px 0; font-size: 11px; color: var(--text-dim); flex-shrink: 0; }

.trk-detail-scroll { flex: 1; overflow-y: auto; min-height: 0; display: flex; gap: 24px; padding: 12px 24px 24px; }
.trk-detail-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.trk-title-big {
  width: 100%; background: transparent; border: none; color: var(--text-light); font-size: 22px; font-weight: 700;
  outline: none; padding: 4px 6px; border-radius: 8px; font-family: inherit;
}
.trk-title-big:focus { background: var(--glass-bg-light); }

.trk-desc-block textarea {
  width: 100%; background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-light);
  font-size: 13.5px; line-height: 1.5; padding: 8px 6px; outline: none; resize: vertical; font-family: inherit;
}
.trk-desc-block textarea:hover, .trk-desc-block textarea:focus { background: var(--glass-bg-light); border-color: var(--glass-border); }
.trk-desc-save { margin-top: 4px; }

.trk-action-row { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 2px; }

.trk-block-card { background: var(--glass-bg-light); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 14px; }
.trk-block-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-dim); margin-bottom: 10px; cursor: default; }

.trk-checklist { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.trk-checklist-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 2px; }
.trk-done-text { text-decoration: line-through; color: var(--text-dim); }
.trk-icon-btn { background: none; border: none; color: var(--text-dim); font-size: 12px; margin-left: auto; }
.trk-icon-btn:hover { color: var(--danger); }
.trk-checklist-add { display: flex; gap: 6px; }

.trk-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.trk-link-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.trk-link-type { color: var(--text-dim); font-size: 10.5px; text-transform: uppercase; flex-shrink: 0; }
.trk-link-key { font-weight: 700; color: var(--gold-soft); flex-shrink: 0; }
.trk-link-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-empty-mini { font-size: 11.5px; color: var(--text-dim); }

/* Вкладки Комментарии/Вложения/История */
.trk-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--glass-border); margin-bottom: 12px; }
.trk-tab-btn { background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-dim); font-size: 12.5px; font-weight: 600; padding: 8px 4px; margin-right: 16px; }
.trk-tab-btn:hover { color: var(--text-light); }
.trk-tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.trk-tab-panel { display: none; }
.trk-tab-panel.active { display: block; }

.trk-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.trk-attachment-chip { background: var(--glass-bg-light); border: 1px solid var(--glass-border); border-radius: 20px; padding: 4px 10px; font-size: 11.5px; color: var(--text-light); }
.trk-attachment-chip:hover { background: rgba(255,255,255,0.14); }

.trk-comments { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.trk-comment { border-left: 2px solid var(--glass-border); padding-left: 10px; }
.trk-comment-head { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 2px; }
.trk-comment-head .trk-history-time { color: var(--text-dim); font-size: 10.5px; }
.trk-comment-body { font-size: 12.5px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.trk-comment-actions { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.trk-reaction { background: var(--glass-bg-light); border: 1px solid transparent; border-radius: 20px; padding: 2px 7px; font-size: 12px; }
.trk-reaction.active { border-color: var(--gold); background: rgba(255,190,61,0.15); }
.trk-comment-reply-btn { background: none; border: none; color: var(--text-dim); font-size: 11px; margin-left: 4px; }
.trk-comment-reply-btn:hover { color: var(--gold); }
.trk-reply-box { display: flex; gap: 6px; margin-top: 6px; }
.trk-reply-box textarea { flex: 1; }

.trk-history { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; }
.trk-history-row { display: flex; gap: 8px; }
.trk-history-time { color: var(--text-dim); white-space: nowrap; }

/* Правая панель параметров задачи */
.trk-property-panel { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
.trk-property-row { display: flex; flex-direction: column; gap: 5px; padding: 8px 4px; border-bottom: 1px solid var(--glass-border); }
.trk-property-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-dim); }
.trk-property-value { font-size: 13px; }
.trk-mini-select {
  background: var(--glass-bg-light); border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  color: var(--text-light); font-size: 12.5px; padding: 7px 8px; width: 100%;
}
.trk-quick-link { background: none; border: none; color: var(--gold); font-size: 11.5px; padding: 0; text-align: left; }
.trk-quick-link:hover { text-decoration: underline; }
.trk-property-static { color: var(--text-dim); font-size: 12.5px; }

.trk-kb-list { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; margin-top: 8px; }
.trk-kb-item { padding: 8px 10px; border-radius: var(--radius-sm); background: var(--glass-bg-light); cursor: pointer; font-size: 12.5px; }
.trk-kb-item:hover { background: rgba(255,190,61,0.1); }

/* ---------- Слайд-панель быстрого перехода к задачам ---------- */
.trk-quickpanel-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 90; display: flex; justify-content: flex-start; }
.trk-quickpanel {
  width: 380px; max-width: 90vw; height: 100%; background: var(--dark); border-right: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass); padding: 18px; display: flex; flex-direction: column; gap: 10px;
  animation: trk-slide-in .18s ease;
}
@keyframes trk-slide-in { from { transform: translateX(-12px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.trk-quickpanel-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; }
.trk-quickpanel-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.trk-quickpanel-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 12.5px; }
.trk-quickpanel-item:hover { background: var(--glass-bg-light); }
.trk-quickpanel-star { margin-left: auto; background: none; border: none; color: var(--text-dim); font-size: 15px; flex-shrink: 0; }
.trk-quickpanel-star.active { color: var(--gold); }

/* ---------- Мобильная лёгкая адаптация ---------- */
@media (max-width: 1100px) {
  .trk-list-pane { width: 60%; }
}
@media (max-width: 860px) {
  .trk-shell { flex-direction: column; height: auto; min-height: 100%; }
  .trk-sidebar { width: 100%; max-height: 200px; }
  .trk-body { flex-direction: column; }
  .trk-list-pane { width: 100%; max-width: none; border-right: none; border-bottom: 1px solid var(--glass-border); min-height: 300px; }
  .trk-detail-scroll { flex-direction: column; }
  .trk-property-panel { width: 100%; }
}
