:root { --bg:#0f1115; --panel:#171a21; --panel2:#1c2029; --surface:#1a1e24; --text:#e6e6e6; --muted:#9aa4b2; --accent:#ffd633; --accent-text:#1a1e24; --border:#22262f; --border2:#2a2f3a; --border-light:#2a2f3a; --accent-dim:rgba(255,214,51,0.12); --accent-dim2:rgba(255,214,51,0.06); --green:#4caf50; --red:#ff5252; --legend-bg:rgba(255,255,255,0.05); }
[data-theme="light"] {
  --bg: #f0f2f5;
  --panel: #ffffff;
  --panel2: #e8eaed;
  --surface: #e8eaed;
  --text: #1a1a2e;
  --muted: #4a5568;
  --accent: #c9a000;
  --accent-dim: rgba(201,160,0,0.15);
  --accent-dim2: rgba(201,160,0,0.08);
  --border: #d1d5db;
  --border2: #9ca3af;
  --green: #16a34a;
  --red: #dc2626;
  --accent-text: #1a1a2e;
  --border-light: #9ca3af;
  --legend-bg: rgba(0,0,0,0.06);
}
[data-theme="light"] header,
[data-theme="light"] .sidebar-header {
  background: var(--panel) !important;
  border-color: var(--border) !important;
}
[data-theme="light"] .sidebar,
[data-theme="light"] .subsection-title,
[data-theme="light"] .chapter-title,
[data-theme="light"] .task-item,
[data-theme="light"] .main-chapter-title,
[data-theme="light"] .panel,
[data-theme="light"] .featured,
[data-theme="light"] .card,
[data-theme="light"] .section-card,
[data-theme="light"] .form-section,
[data-theme="light"] .detail-section,
[data-theme="light"] .review-card {
  background: var(--panel) !important;
  border-color: var(--border) !important;
}
[data-theme="light"] .task-item:hover,
[data-theme="light"] .subsection-title:hover,
[data-theme="light"] .chapter-title:hover,
[data-theme="light"] .main-chapter-title:hover {
  background: var(--panel2) !important;
}
[data-theme="light"] .auth-btn {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--muted) !important;
}
[data-theme="light"] .auth-btn:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: transparent !important;
  color: var(--text) !important;
}
[data-theme="light"] .logout-btn:hover {
  background: rgba(220, 38, 38, 0.1) !important;
  color: var(--red) !important;
}
.theme-toggle {
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
}
.theme-toggle:hover { opacity: 0.9; }
.brand-domain-dot{color:#eab308}
*{box-sizing:border-box} body{margin:0;font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text)}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
header{padding:16px 0;border-bottom:1px solid var(--border);background:var(--bg)}
.header-content{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}
.header-content > h1,
.header-content > .site-logo{margin:0;font-size:1.2rem;font-weight:800;letter-spacing:-0.02em;line-height:1.2;color:var(--text)}
.menu-btn{background:var(--accent);color:#111;border:none;border-radius:8px;padding:10px 16px;font-size:20px;cursor:pointer;font-weight:700;box-shadow:0 4px 12px rgba(255,214,51,.3);transition:transform 0.2s}
.menu-btn:hover{transform:scale(1.05)}
.subtitle{color:var(--muted);font-size:13px;line-height:1.3;white-space:nowrap;flex-shrink:0}
.auth-buttons{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto;min-height:36px;max-width:100%;overflow-x:auto;scrollbar-width:thin}
.user-email{color:var(--muted);font-size:14px;margin-right:8px}
.auth-btn{display:inline-flex;align-items:center;justify-content:center;font-family:inherit;text-decoration:none;color:var(--muted);background:transparent;border:none;border-radius:6px;padding:8px 10px;font-size:13px;font-weight:500;letter-spacing:-0.01em;cursor:pointer;transition:color 0.15s ease,background 0.15s ease;white-space:nowrap;flex-shrink:0;box-shadow:none}
a.auth-btn:visited,a.auth-btn:active{color:var(--muted);text-decoration:none}
.auth-btn:hover{background:rgba(255,255,255,0.06);color:var(--text);text-decoration:none}
.auth-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.logout-btn{color:var(--muted);background:transparent;border:none}
.logout-btn:hover{background:rgba(255,82,82,0.12);color:var(--red);border-color:transparent}
.sidebar{position:fixed;left:-350px;top:0;width:350px;height:100vh;background:var(--panel);border-right:1px solid #22262f;z-index:1000;transition:left 0.3s ease;box-shadow:4px 0 20px rgba(0,0,0,.5);overflow-y:auto}
.sidebar.open{left:0}
.sidebar-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #22262f;background:linear-gradient(180deg,#1b1f2a 0%,#151922 100%)}
.sidebar-header h2{margin:0;font-size:20px;color:var(--text)}
.close-btn{background:none;border:none;color:var(--text);font-size:24px;cursor:pointer;padding:4px 12px;border-radius:6px;transition:background 0.2s}
.close-btn:hover{background:#22262f}
.sidebar-content{padding:16px}
.main-chapter-section{margin-bottom:20px}
.main-chapter-title{font-size:18px;font-weight:700;color:var(--accent);padding:14px 16px;background:linear-gradient(135deg,#2a2f3a 0%,#22262f 100%);border-radius:10px;margin-bottom:10px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:all 0.2s;border:1px solid rgba(255,214,51,0.2)}
.main-chapter-title:hover{background:linear-gradient(135deg,#323844 0%,#2a2f3a 100%);border-color:rgba(255,214,51,0.4)}
.main-chapter-content{padding-left:12px;transition:opacity 0.2s ease, max-height 0.3s ease;overflow:hidden;max-height:5000px;opacity:1}
.main-chapter-content[style*="display: none"]{max-height:0;opacity:0}
.subsection-section{margin-bottom:12px}
.subsection-title{font-size:15px;font-weight:600;color:#b8c0cc;padding:10px 14px;background:#22262f;border-radius:8px;margin-bottom:6px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:background 0.2s;border-left:3px solid #2a2f3a;position:relative}
.subsection-title:hover{background:#2a2f3a}
.subsection-title[style*="border-left: 3px solid var(--accent)"]{border-left-color:var(--accent)!important}
.subsection-tasks{padding-left:12px;transition:opacity 0.2s ease, max-height 0.3s ease;overflow:hidden;max-height:2000px;opacity:1}
.subsection-tasks[style*="display: none"]{max-height:0;opacity:0}
.chapter-section{margin-bottom:24px}
.chapter-title{font-size:16px;font-weight:700;color:var(--accent);padding:12px 16px;background:#22262f;border-radius:8px;margin-bottom:8px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:background 0.2s}
.chapter-title:hover{background:#2a2f3a}
.chapter-toggle{font-size:14px;transition:transform 0.2s}
.chapter-title.collapsed .chapter-toggle,.main-chapter-title.collapsed .chapter-toggle,.subsection-title.collapsed .chapter-toggle{transform:rotate(-90deg)}
.chapter-tasks{padding-left:8px;transition:opacity 0.2s ease, max-height 0.3s ease;overflow:hidden;max-height:2000px;opacity:1}
.chapter-tasks[style*="display: none"]{max-height:0;opacity:0}
.task-item{padding:10px 16px;margin:4px 0;background:#22262f;border-radius:8px;cursor:pointer;transition:all 0.2s;border-left:3px solid transparent}
.task-item:hover{background:#2a2f3a;border-left-color:var(--accent);transform:translateX(4px)}
.task-item.active{background:#2a3542;border-left-color:var(--accent);box-shadow:0 2px 8px rgba(255,214,51,.2)}
.task-item.solved{background:#1f2a1f;border-left-color:#4caf50}
.task-item.solved .task-item-title{color:#d7f5dd}
.task-solved-mark{color:#4caf50;margin-right:6px}
.task-item-title{font-weight:600;color:var(--text);margin-bottom:4px}
.task-item-id{font-size:12px;color:var(--muted)}
.recent-attempt{display:flex;flex-direction:column;gap:6px;padding:8px 10px;background:#1a1e24;border-radius:6px;border:1px solid #2a2f3a}
.recent-attempt-header{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}
.recent-attempt-status{font-weight:600}
.recent-attempt-status.ok{color:#00c853}
.recent-attempt-status.fail{color:#ff9800}
.recent-attempt-query{font-family:'Courier New',Courier,monospace;font-size:12px;color:#b8c0cc;white-space:pre-wrap;word-break:break-word}
.recent-attempt-actions{display:flex;justify-content:flex-end}
.recent-attempt-open{background:#2a2f3a;color:#b8c0cc;border:1px solid #3a3f4a;border-radius:6px;padding:4px 8px;cursor:pointer;font-size:11px}
.recent-attempt-open:hover{border-color:#ffd633;color:#ffd633}
.sidebar-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:999;opacity:0;visibility:hidden;transition:opacity 0.3s, visibility 0.3s}
.sidebar-overlay.visible{opacity:1;visibility:visible}
.grid{display:grid;grid-template-columns:1fr 2fr 1fr;gap:16px;margin:20px 0;align-items:start}
.panel{background:var(--panel);border:1px solid #22262f;border-radius:16px;padding:16px;box-shadow:0 10px 30px rgba(0,0,0,.35);min-height:200px}
.actions{display:flex;gap:12px;align-items:center;margin:10px 0}
button#run{background:var(--accent);color:#111;border:none;border-radius:12px;padding:10px 16px;font-weight:700;cursor:pointer;box-shadow:0 6px 16px rgba(255,214,51,.3);transition:all 0.2s}
button#run:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px rgba(255,214,51,.4)}
button#run:disabled{background:#444;color:#888;cursor:not-allowed;box-shadow:none;opacity:0.7}
#status{color:var(--muted)}
.CodeMirror{
  height:300px;
  min-height:200px;
  max-height:600px;
  min-width:400px;
  max-width:100%;
  border:1px solid #2a2f3a;
  border-radius:8px;
  font-family:'Courier New',Courier,monospace;
  font-size:14px;
  line-height:1.6;
}
.CodeMirror-scroll{
  min-height:200px;
  max-height:600px;
}
.CodeMirror-wrap pre{
  word-wrap:break-word;
  white-space:pre-wrap;
  word-break:normal;
}
#result{margin-top:8px;border:1px solid #2a2f3a;border-radius:12px;overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{border-bottom:1px solid #242a33;padding:8px 10px;text-align:left}
th{background:#10131a;color:#b8c0cc}
tr:hover td{background:#0d1016}
.hints{color:#ffd185;margin-bottom:6px}
footer{padding:18px 0;color:var(--muted);border-top:1px solid #22262f;background:var(--panel);transition:background-color 0.3s ease}
footer .container{min-height:100px}
footer table{width:100%;border-collapse:collapse;font-size:14px;margin-top:10px}
footer th,footer td{border-bottom:1px solid #242a33;padding:8px 10px;text-align:left}
footer th{background:#10131a;color:#b8c0cc}
footer tr:hover td{background:#0d1016}

/* Цветовые индикаторы для результата */
#resultFooter.result-success {
  background: rgba(76, 175, 80, 0.1);
  border-top-color: rgba(76, 175, 80, 0.3);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

#resultFooter.result-warning {
  background: rgba(255, 152, 0, 0.1);
  border-top-color: rgba(255, 152, 0, 0.3);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

#resultFooter.result-error {
  background: rgba(244, 67, 54, 0.1);
  border-top-color: rgba(244, 67, 54, 0.3);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

#resultFooter.result-info {
  background: rgba(33, 150, 243, 0.1);
  border-top-color: rgba(33, 150, 243, 0.3);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.result-footer-legacy{display:none!important}

/* ——— Тренажёр: плоский список, результат под редактором ——— */
.header-title-compact{font-size:1rem;font-weight:800}
.page-trainer #showHint,
.page-trainer #hints{display:none!important}
.trainer-main.container{max-width:1320px}
.trainer-grid{
  grid-template-columns:minmax(210px,240px) minmax(0,1fr) minmax(190px,220px);
  gap:12px;margin:12px 0;
  grid-template-areas:"left editor right";
}
.trainer-col-left{grid-area:left;display:flex;flex-direction:column;gap:10px}
#editorPanel{grid-area:editor}
#lessonPanel{grid-area:editor}
#lessonPanel.panel-lesson{
  padding:0;overflow:visible;display:flex;flex-direction:column;
  min-height:0;height:auto;align-self:start;
}
#lessonPanel .lesson-chrome{
  display:flex;align-items:center;padding:6px 14px;
  border-bottom:1px solid var(--border2);background:var(--panel2);flex-shrink:0;
}
#lessonPanel .lesson-chrome-title{font-size:12px;font-weight:600;color:var(--muted)}
#lessonPanel .lesson-content-host{
  flex:0 0 auto;height:auto;padding:8px 10px;line-height:1.6;color:#b8c0cc;overflow:hidden;
}
#taskCenterPanel{grid-area:right}
.panel-tight{padding:14px;min-height:0}
.panel-eyebrow{
  font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);
  margin-bottom:10px;font-weight:600;opacity:.9;
}
.panel-flat-tasks .flat-tasks-more{margin:10px 0 0;font-size:11px;color:var(--muted);line-height:1.4}
.flat-tasks-list{display:flex;flex-direction:column;gap:4px;max-height:min(52vh,420px);overflow-y:auto}
.flat-tasks-empty{font-size:12px;color:var(--muted)}
.flat-task-item{
  cursor:pointer;border-radius:8px;border:1px solid transparent;padding:8px 10px;
  transition:background .15s,border-color .15s;
}
.flat-task-item:hover{background:var(--surface)}
.flat-task-item.active{background:var(--accent-dim);border-color:rgba(255,214,51,.35)}
.flat-task-item.solved:not(.active){border-color:rgba(76,175,80,.2);background:rgba(76,175,80,.06)}
.flat-task-inner{display:flex;align-items:center;gap:8px;min-width:0}
.flat-task-num{
  flex-shrink:0;width:22px;height:22px;border-radius:50%;font-size:11px;font-weight:700;
  display:flex;align-items:center;justify-content:center;background:#22262f;color:var(--muted);
}
.flat-task-item.active .flat-task-num{background:var(--accent-dim);color:var(--accent)}
.flat-task-item.solved .flat-task-num{background:rgba(76,175,80,.15);color:var(--green)}
.ft-ico{flex-shrink:0;font-size:13px}
.flat-task-title{font-size:12px;color:var(--text);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.panel-editor{padding:0;overflow:hidden;display:flex;flex-direction:column;min-height:0}
.editor-chrome{
  display:flex;align-items:center;justify-content:space-between;padding:8px 14px;
  border-bottom:1px solid var(--border2);background:var(--panel2);
}
.editor-chrome-filename{font-family:'Courier New',monospace;font-size:12px;color:var(--muted)}
.editor-chrome-dots{display:flex;gap:5px;align-items:center}
.editor-chrome-dots i{width:9px;height:9px;border-radius:50%;background:#3a3f4a;display:block}
.editor-chrome-dots i:last-child{background:var(--accent)}
.panel-editor .CodeMirror{
  border-radius:0;border:0;border-bottom:1px solid var(--border2);
  min-width:0;width:100%;box-shadow:none;
}
.editor-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 14px}
.editor-status{flex:1;min-width:120px;font-size:13px;color:var(--muted)}
.btn-editor-secondary{
  background:var(--surface);color:var(--muted);border:1px solid var(--border2);
  border-radius:8px;padding:9px 14px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;
}
.btn-editor-secondary:hover{color:var(--text);border-color:var(--accent)}
.btn-hint-inline{
  margin-top:10px;background:transparent;border:1px solid var(--border2);color:var(--muted);
  border-radius:8px;padding:6px 12px;font-size:12px;cursor:pointer;font-family:inherit;
}
.btn-hint-inline:hover{color:var(--text);border-color:var(--accent)}
.task-center-panel .task-center-rows{border-bottom:1px solid var(--border)}
.tc-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;gap:10px}
.tc-row-last{border-bottom:none}
.tc-k{font-size:12px;color:var(--muted)}
.tc-v{font-size:13px;font-weight:600;color:var(--text)}
.tc-muted{color:var(--muted)!important;font-weight:500!important}
.task-center-xp{margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}
.tc-xp-head{display:flex;justify-content:space-between;margin-bottom:6px}
.tc-xp-bar-wrap{height:6px;background:#1a1d24;border-radius:3px;overflow:hidden}
.tc-xp-bar{height:100%;width:0;background:linear-gradient(90deg,#ffd633,#ffb300);border-radius:3px;transition:width .35s ease}
.tc-xp-foot{margin-top:6px}
.tc-xp-val{font-size:13px;font-weight:700;color:var(--accent)}
.task-center-recent{margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}
.task-center-nav{display:flex;gap:8px;margin-top:12px}
.btn-nav-compact{
  flex:1;padding:9px;background:var(--surface);border:1px solid var(--border2);border-radius:8px;
  color:var(--muted);cursor:pointer;font-size:15px;font-family:inherit;
}
.btn-nav-compact:hover:not(:disabled){color:var(--text);border-color:var(--accent)}
.btn-nav-compact:disabled{opacity:.45;cursor:not-allowed}
.query-result-panel{
  margin:0 14px 14px;border:1px solid var(--border2);border-radius:10px;overflow:hidden;
  background:var(--panel2);transition:background-color .25s ease,border-color .25s ease;
}
.query-result-panel[hidden]{display:none!important}
.query-result-head{
  display:flex;align-items:center;justify-content:space-between;padding:8px 12px;
  border-bottom:1px solid var(--border2);font-size:12px;color:var(--muted);
}
.query-result-title{font-weight:600}
.query-result-body{padding:0;max-height:min(50vh,360px);overflow:auto;font-size:13px}
.query-result-body table{width:100%;border-collapse:collapse;font-size:13px}
.query-result-body th,.query-result-body td{border-bottom:1px solid #242a33;padding:7px 10px;text-align:left}
.query-result-body th{background:#10131a;color:#b8c0cc}
.query-result-panel.result-success{background:rgba(76,175,80,.08);border-color:rgba(76,175,80,.35)}
.query-result-panel.result-warning{background:rgba(255,152,0,.08);border-color:rgba(255,152,0,.35)}
.query-result-panel.result-error{background:rgba(244,67,54,.08);border-color:rgba(244,67,54,.35)}
.query-result-panel.result-info{background:rgba(33,150,243,.06);border-color:rgba(33,150,243,.25)}
.panel-editor .hints{padding:0 14px 8px}
#lessonPanel .lesson-content-host .lesson-static-frame{
  display:block;width:100%;height:auto;min-height:0;overflow:hidden;
  border:none;border-radius:8px;background:#0a0a0a;
}
@media (max-width:980px){
  .trainer-grid{
    grid-template-columns:1fr;
    grid-template-areas:"left""editor""right";
  }
}

/* Анимации */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.panel {
  animation: fadeIn 0.3s ease;
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 12px;
  }

  header {
    padding: 16px 0;
  }

  .header-content {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-content h1 {
    font-size: 18px;
    flex: 1;
    min-width: 0;
  }

  .subtitle {
    display: none; /* Скрываем на мобильных */
  }

  .auth-buttons {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    order: 3;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .auth-btn {
    padding: 10px 12px;
    font-size: 13px;
    min-height: 44px;
  }

  .menu-btn {
    min-height: 48px;
    min-width: 48px;
    padding: 12px;
  }

  /* Сайдбар на мобильных занимает всю ширину */
  .sidebar {
    width: 100%;
    left: -100%;
  }

  /* Вертикальная раскладка панелей */
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 12px 0;
  }

  .panel {
    padding: 12px;
    min-height: auto;
  }

  .panel h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  /* Редактор на всю ширину */
  .CodeMirror {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 250px;
    min-height: 200px;
    max-height: 400px;
    font-size: 16px; /* Увеличиваем для удобства на мобильных */
  }

  .CodeMirror-scroll {
    min-height: 200px;
    max-height: 400px;
  }

  /* Кнопки на всю ширину и больше */
  .actions {
    flex-direction: column;
    gap: 8px;
  }

  button, .btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 16px;
    margin-top: 8px;
    border-radius: 12px;
  }

  button#run {
    width: 100%;
    min-height: 48px;
    padding: 14px 20px;
    font-size: 16px;
  }

  /* Таблицы с горизонтальной прокруткой */
  #result, #resultFooter {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 600px; /* Минимальная ширина для таблиц */
    font-size: 14px;
  }

  footer table {
    min-width: 600px;
  }

  /* Списки задач адаптируем */
  .task-item {
    padding: 12px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .task-item-title {
    font-size: 15px;
  }

  /* Улучшаем отступы для тач-управления */
  .main-chapter-title,
  .subsection-title {
    min-height: 48px;
    padding: 14px 16px;
  }

  /* Скрываем некоторые элементы на мобильных */
  .chapter-toggle {
    font-size: 16px;
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
  .header-content h1 {
    font-size: 16px;
  }

  .panel {
    padding: 10px;
  }

  .CodeMirror {
    font-size: 14px;
  }

  button, .btn {
    font-size: 15px;
    padding: 12px 14px;
  }
}

/* Улучшение контрастности текста */
.CodeMirror {
  color: #e6e6e6;
  background: #1a1d24;
}

.CodeMirror-cursor {
  border-left-color: #ffd633;
}

.CodeMirror-selected {
  background: rgba(255, 214, 51, 0.2);
}

/* Улучшение контрастности в таблицах результатов */
table {
  color: #e6e6e6;
}

th {
  color: #b8c0cc;
  font-weight: 600;
}

td {
  color: #e6e6e6;
}

/* Tooltip стили */
button[title] {
  position: relative;
}

button[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: #1a1d24;
  color: #e6e6e6;
  border: 1px solid #3a3f4a;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  pointer-events: none;
  animation: fadeIn 0.2s ease;
}

@media (max-width:980px){.grid{grid-template-columns:1fr};.sidebar{width:300px;left:-300px}.subtitle{display:none}}
olute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: #1a1d24;
  color: #e6e6e6;
  border: 1px solid #3a3f4a;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  pointer-events: none;
  animation: fadeIn 0.2s ease;
}

@media (max-width:980px){.grid{grid-template-columns:1fr};.sidebar{width:300px;left:-300px}.subtitle{display:none}}
fr};.sidebar{width:300px;left:-300px}.subtitle{display:none}}
inter-events: none;
  animation: fadeIn 0.2s ease;
}

@media (max-width:980px){.grid{grid-template-columns:1fr};.sidebar{width:300px;left:-300px}.subtitle{display:none}}
width:980px){.grid{grid-template-columns:1fr};.sidebar{width:300px;left:-300px}.subtitle{display:none}}
btitle{display:none}}
