/* =============================================================================
   QuickPlatform — общие стили (стартовая страница + презентации)
   Новая сборка: вынесено из старой inline-CSS + мобильное меню
   ============================================================================= */

/* --- Мобильное меню (все страницы) --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  max-width: 86vw;
  height: 100%;
  background: linear-gradient(180deg, #0f172a, #1e293b);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 14px;
  z-index: 10050;
  pointer-events: auto;
  transition: left 0.28s ease;
  overflow-y: auto;
  box-sizing: border-box;
}
body.page-start.light .mobile-menu {
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  border-right-color: rgba(15, 23, 42, 0.12);
}
.mobile-menu.active { left: 0; }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
#menuToggle {
  display: none;
  align-items: center;
  justify-content: center;
}
.mobile-menu .nav,
.mobile-menu .products {
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: none;
  background: transparent;
  border: 0;
  padding: 0;
}
.mobile-menu .nav button,
.mobile-menu .products button {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  pointer-events: auto;
}
body.page-start.light .mobile-menu .products button {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
}

/* =============================================================================
   Стартовая страница QuickPlatform (body.page-start)
   ============================================================================= */
body.page-start {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #0b1220, #0f172a);
  color: #e2e8f0;
  min-height: 100vh;
}
body.page-start.light {
  background: linear-gradient(180deg, #f3f7fb, #eef3f9);
  color: #000;
}
body.page-start * { box-sizing: border-box; }
body.page-start {
  --qp-card: #121a2b;
  --qp-card2: #0f172a;
  --qp-line: rgba(255, 255, 255, 0.06);
  --qp-muted: #94a3b8;
  --qp-accent: #22d3ee;
}
body.page-start.light {
  --qp-card: #ffffff;
  --qp-card2: #eef3f9;
  --qp-line: rgba(15, 23, 42, 0.12);
  --qp-muted: #000;
  --qp-accent: #0284c7;
}
body.page-start .app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
body.page-start .sidebar {
  background: #0b1220;
  border-right: 1px solid var(--qp-line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
body.page-start.light .sidebar {
  background: #f3f7fb;
}
body.page-start .brand h1 { margin: 0; font-size: 24px; }
body.page-start .brand p { color: var(--qp-muted); font-size: 13px; margin: 0; }
body.page-start.light .card p,
body.page-start.light .hero p { color: #334155; }
body.page-start .products {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
body.page-start .products button {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--qp-muted);
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
body.page-start .products button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateX(2px);
}
body.page-start.light .products button {
  color: #0f172a;
}
body.page-start.light .products button:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #0f172a;
}
body.page-start .products button.active {
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  color: #fff;
}
body.page-start .main { display: flex; flex-direction: column; min-width: 0; }
body.page-start .topbar {
  padding: 18px 24px;
  border-bottom: 1px solid var(--qp-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
body.page-start .topbar .btn-qp {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--qp-line);
  background: var(--qp-card);
  color: inherit;
  cursor: pointer;
  font-size: 14px;
}
body.page-start.light .topbar .btn-qp {
  background: #fff;
  color: #0f172a;
}
/* Тёмная тема: светлее только подложка за карточками; сами .card без изменений */
body.page-start .stage {
  padding: 24px;
  background: linear-gradient(180deg, #2a3548, #1e2a3c);
  flex: 1;
}
body.page-start.light .stage {
  background: linear-gradient(180deg, var(--qp-card2), #f3f7fb);
}
body.page-start .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
body.page-start .card {
  background: linear-gradient(145deg, var(--qp-card2), var(--qp-card));
  border: 1px solid var(--qp-line);
  border-radius: 18px;
  padding: 18px;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
body.page-start .card:hover { transform: translateY(-4px); }
body.page-start .card h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.1;
}
body.page-start .card p { margin-top: 6px; color: var(--qp-muted); font-size: 13px; }
body.page-start .tag {
  margin-top: 10px;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  font-size: 11px;
  border: 2px solid rgba(34, 211, 238, 0.4);
}
body.page-start.light .tag {
  background: transparent;
  color: #000;
  border-color: #000;
}
body.page-start button.tag.channel-action-btn,
body.page-start button.tag.demo-open-btn {
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  min-height: 48px;
  text-align: center;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  color: #22d3ee;
}
body.page-start.light button.tag.channel-action-btn,
body.page-start.light button.tag.demo-open-btn {
  color: #000;
}
body.page-start button.tag.channel-action-btn:hover,
body.page-start button.tag.demo-open-btn:hover {
  filter: brightness(1.12);
}
body.page-start button.tag.channel-action-btn:active,
body.page-start button.tag.demo-open-btn:active {
  transform: scale(0.98);
}
body.page-start .status {
  margin-bottom: 8px;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  align-self: flex-start;
}
body.page-start .status-active { background: #16a34a; color: #fff; }
body.page-start .dev { background: #f59e0b; color: #000; }
body.page-start .release { background: #2563eb; color: #fff; margin-top: 6px; }
body.page-start .hero { margin-bottom: 20px; }
body.page-start .hero h1 { margin: 0; font-size: clamp(20px, 3vw, 26px); }
body.page-start .hero p { color: var(--qp-muted); margin: 8px 0 0; }
body.page-start .view { display: none; }
body.page-start .view.active { display: block; }
body.page-start .channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
/* Десктоп: шрифты в карточках −15 % */
@media (min-width: 901px) {
  body.page-start .card h3 {
    font-size: clamp(18.7px, 3.4vw, 30.6px);
  }
  body.page-start .card p {
    font-size: 11.05px;
  }
  body.page-start .card .tag,
  body.page-start .card button.tag.channel-action-btn,
  body.page-start .card button.tag.demo-open-btn {
    font-size: 9.35px;
  }
  body.page-start .card .status {
    font-size: 9.35px;
  }
}
@media (max-width: 900px) {
  body.page-start #menuToggle { display: inline-flex; }
  body.page-start .app { grid-template-columns: 1fr; }
  body.page-start .sidebar { display: none; }
  body.page-start .grid,
  body.page-start .channels-grid { grid-template-columns: 1fr; }
}

/* Модальное окно: выбор демо продукта */
body.demo-modal-open {
  overflow: hidden;
}
body.page-start .demo-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}
body.page-start .demo-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
/* Резерв: окно демо видно даже при сбое вложенных селекторов */
#demoProductModal.is-open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 100000;
  position: fixed;
  inset: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
body.page-start .demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}
body.page-start .demo-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 520px);
  overflow: auto;
  background: linear-gradient(145deg, var(--qp-card2), var(--qp-card));
  border: 1px solid var(--qp-line);
  border-radius: 18px;
  padding: 24px 22px 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}
body.page-start.light .demo-modal-panel {
  background: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}
body.page-start .demo-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
body.page-start.light .demo-modal-close {
  background: #e2e8f0;
  color: #0f172a;
}
body.page-start .demo-modal-title {
  margin: 0 36px 8px 0;
  font-size: 1.25rem;
  font-weight: 800;
}
body.page-start .demo-modal-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--qp-muted);
}
body.page-start .demo-product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.page-start .demo-product-list > li {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.page-start .demo-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--qp-line);
  background: rgba(0, 0, 0, 0.15);
}
body.page-start a.demo-product {
  text-decoration: none;
  color: inherit;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(34, 211, 238, 0.15);
}
body.page-start a.demo-product:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
body.page-start a.demo-product:active {
  filter: brightness(0.95);
}
body.page-start.light .demo-product {
  background: #f1f5f9;
}
body.page-start .demo-product--inactive {
  cursor: default;
}
body.page-start .demo-product-name {
  font-weight: 700;
  font-size: 16px;
}
body.page-start a.demo-product--active .demo-product-name {
  color: #22d3ee;
}
body.page-start.light a.demo-product--active .demo-product-name {
  color: #0284c7;
}
body.page-start .demo-product-note {
  font-size: 12px;
  white-space: nowrap;
  font-weight: 600;
}
body.page-start .demo-product--active .demo-product-note {
  color: #4ade80;
}
body.page-start .demo-product--inactive .demo-product-note {
  color: #fbbf24;
}
body.page-start.light .demo-product--active .demo-product-note {
  color: #16a34a;
}
body.page-start.light .demo-product--inactive .demo-product-note {
  color: #ca8a04;
}
body.page-start .demo-product--active {
  border-color: rgba(74, 222, 128, 0.35);
}
/* Модалка демо — мобильные и вырезы экрана */
@media (max-width: 520px) {
  body.page-start .demo-modal,
  #demoProductModal.is-open {
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
      max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    align-items: flex-end;
  }
  body.page-start .demo-modal-panel {
    max-width: none;
    width: 100%;
    max-height: 85vh;
    max-height: min(85vh, calc(100dvh - 20px));
    border-radius: 16px 16px 0 0;
    padding: 20px 16px max(18px, env(safe-area-inset-bottom, 0px));
  }
  body.page-start .demo-modal-title {
    font-size: 1.1rem;
  }
  body.page-start .demo-product {
    flex-wrap: wrap;
    padding: 12px 14px;
    min-height: 48px;
  }
  body.page-start a.demo-product {
    min-height: 48px;
  }
  body.page-start .demo-modal-close {
    width: 44px;
    height: 44px;
    top: 8px;
    right: 8px;
    -webkit-tap-highlight-color: transparent;
  }
}

/* =============================================================================
   Презентации: QuickAcc, QuickForm, QuickHR (body.pres-std)
   ============================================================================= */
body.pres-std {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.1), transparent 28%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.1), transparent 24%),
    linear-gradient(135deg, #eef5fb, #f8fbff 55%, #edf4fb);
  color: #10233e;
  overflow-x: hidden;
  min-height: 100vh;
}
body.pres-std * { box-sizing: border-box; }
body.pres-std {
  --p-line: rgba(15, 23, 42, 0.1);
  --p-panel: rgba(255, 255, 255, 0.88);
  --p-card: rgba(255, 255, 255, 0.86);
  --p-muted: #5d728f;
  --p-accent: #2563eb;
  --p-accent2: #0ea5e9;
  --p-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  --p-radius: 22px;
  --p-ok: #16a34a;
  --p-warn: #f59e0b;
  --p-danger: #dc2626;
  --p-teal: #14b8a6;
  --p-violet: #8b5cf6;
}
body.pres-std.dark .sidebar,
body.pres-std.dark .topbar {
  background: rgba(15, 23, 42, 0.92);
  color: #e5eefc;
  border-color: rgba(255, 255, 255, 0.12);
}
body.pres-std.dark .brand,
body.pres-std.dark .nav,
body.pres-std.dark .side-footer,
body.pres-std.dark .btn {
  background: rgba(30, 41, 59, 0.92);
  color: #e5eefc;
  border-color: rgba(255, 255, 255, 0.12);
}
body.pres-std.dark .nav button { color: #e5eefc; }
body.pres-std.dark .nav button.active,
body.pres-std.dark .nav button:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #fff;
}
body.pres-std.dark .title-wrap p { color: #9fb0cc; }
body.pres-std .app {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100vh;
  min-width: 0;
  max-width: 100vw;
}
body.pres-std .sidebar {
  border-right: 1px solid var(--p-line);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
body.pres-std .brand,
body.pres-std .nav,
body.pres-std .side-footer,
body.pres-std .panel,
body.pres-std .screen,
body.pres-std .dashboard-shell,
body.pres-std .btn {
  box-shadow: var(--p-shadow);
}
body.pres-std .brand {
  padding: 18px 16px;
  border: 1px solid var(--p-line);
  border-radius: 18px;
  background: var(--p-panel);
}
body.pres-std .brand h1 { margin: 0; font-size: 28px; }
body.pres-std .brand p,
body.pres-std .slide p,
body.pres-std li {
  color: var(--p-muted);
  line-height: 1.6;
  font-size: 14px;
}
body.pres-std .nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--p-line);
  border-radius: 18px;
  background: var(--p-panel);
}
body.pres-std .nav button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #10233e;
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.2s;
}
body.pres-std .nav button:hover,
body.pres-std .nav button.active {
  background: rgba(37, 99, 235, 0.1);
  color: #0b2347;
  transform: translateX(2px);
}
body.pres-std .side-footer {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--p-line);
  border-radius: 18px;
  background: var(--p-panel);
  font-size: 13px;
}
body.pres-std .main { display: flex; flex-direction: column; min-width: 0; }
body.pres-std .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-bottom: 1px solid var(--p-line);
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(10px);
}
body.pres-std .title-wrap h2 { margin: 0; font-size: 22px; }
body.pres-std .title-wrap p { margin: 6px 0 0; color: var(--p-muted); font-size: 14px; }
body.pres-std .controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.pres-std .btn {
  border: 1px solid var(--p-line);
  background: var(--p-panel);
  color: #10233e;
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
body.pres-std .btn:hover { transform: translateY(-1px); }
body.pres-std .btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--p-accent), var(--p-accent2));
  border-color: transparent;
}
body.pres-std .stage { flex: 1; padding: 24px; overflow: auto; }
body.pres-std .slide {
  display: none;
  min-height: calc(100vh - 140px);
  border: 1px solid var(--p-line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.8));
  padding: 30px;
  animation: presFade 0.25s ease;
}
body.pres-std .slide.active { display: block; }
@keyframes presFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
body.pres-std .panel {
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius);
  background: var(--p-card);
  padding: 22px;
}
body.pres-std .hero,
body.pres-std .cards-2,
body.pres-std .cards-3,
body.pres-std .screen-grid,
body.pres-std .dashboard-grid,
body.pres-std .flow {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
body.pres-std .hero { grid-template-columns: 1.15fr 0.85fr; }
body.pres-std .cards-2,
body.pres-std .screen-grid { grid-template-columns: repeat(2, 1fr); }
body.pres-std .cards-3,
body.pres-std .dashboard-grid { grid-template-columns: repeat(3, 1fr); }
body.pres-std .flow { grid-template-columns: repeat(5, 1fr); }
body.pres-std .slide h3 { margin: 0 0 10px; font-size: 28px; line-height: 1.15; }
body.pres-std .slide h4 { margin: 0 0 8px; font-size: 18px; color: #10233e; }
body.pres-std .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.08);
  color: #21457f;
  font-size: 12px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body.pres-std .big-number { font-size: 30px; font-weight: 700; color: #0b2347; }
body.pres-std .tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
body.pres-std .tag,
body.pres-std .pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--p-line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  color: #10233e;
}
body.pres-std .pill.ok { background: rgba(22, 163, 74, 0.1); border-color: rgba(22, 163, 74, 0.18); }
body.pres-std .pill.warn { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.18); }
body.pres-std .pill.bad { background: rgba(220, 38, 38, 0.1); border-color: rgba(220, 38, 38, 0.18); }
body.pres-std .footer-nav { display: flex; justify-content: space-between; margin-top: 22px; }
body.pres-std .muted-list { margin: 10px 0 0; padding-left: 18px; }
body.pres-std table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--p-line);
  border-radius: 18px;
  overflow: hidden;
}
body.pres-std th,
body.pres-std td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--p-line);
}
body.pres-std th { background: rgba(37, 99, 235, 0.05); color: #0b2347; }
body.pres-std tr:last-child td { border-bottom: 0; }
body.pres-std .dashboard-shell {
  border: 1px solid var(--p-line);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff, #eef4fb);
}
body.pres-std .dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--p-line);
  background: rgba(255, 255, 255, 0.85);
}
body.pres-std .screen-sidebar {
  border-right: 1px solid var(--p-line);
  background: #f2f7fc;
  padding: 18px;
}
body.pres-std .screen-nav { display: grid; gap: 8px; margin-top: 14px; }
body.pres-std .screen-nav button {
  border: 1px solid var(--p-line);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  color: #10233e;
}
body.pres-std .screen-nav button.active {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.22);
}
body.pres-std .screen-main { padding: 18px; }
body.pres-std .screen {
  display: none;
  border: 1px solid var(--p-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  padding: 18px;
}
body.pres-std .screen.active { display: block; }
body.pres-std .metric-card,
body.pres-std .list-card,
body.pres-std .step {
  border: 1px solid var(--p-line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}
body.pres-std .step .n {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.12);
  color: #0b2347;
  font-weight: 700;
  margin-bottom: 12px;
}
body.pres-std .progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin-top: 8px;
}
body.pres-std .progress > div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--p-accent), var(--p-accent2));
}
/* QuickHR-only */
body.pres-std .profile-grid,
body.pres-std .analysis-grid { display: grid; gap: 18px; margin-top: 18px; }
body.pres-std .profile-grid { grid-template-columns: 1fr 1fr; }
body.pres-std .analysis-grid { grid-template-columns: repeat(2, 1fr); }
body.pres-std.hr-layout .screen-grid { grid-template-columns: 280px 1fr; }
body.pres-std .bar-pair { display: grid; gap: 14px; margin-top: 12px; }
body.pres-std .bar-row {
  display: grid;
  grid-template-columns: 150px 1fr auto auto;
  gap: 12px;
  align-items: center;
}
body.pres-std .bar-track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: #e8eef6;
  overflow: hidden;
}
body.pres-std .bar-company,
body.pres-std .bar-worker {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
}
body.pres-std .bar-company {
  background: linear-gradient(90deg, var(--p-accent), var(--p-violet));
  opacity: 0.92;
}
body.pres-std .bar-worker {
  background: linear-gradient(90deg, var(--p-teal), var(--p-ok));
  opacity: 0.72;
}
body.pres-std .legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px;
  color: var(--p-muted);
}
body.pres-std .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
body.pres-std .mini-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
body.pres-std .list-card { margin-top: 14px; }
body.pres-std .course-item {
  display: grid;
  grid-template-columns: 1fr 90px 120px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--p-line);
}
body.pres-std .course-item:last-child { border-bottom: 0; }
body.pres-std .score-badge {
  font-weight: 700;
  color: #0b2347;
  background: rgba(37, 99, 235, 0.08);
  padding: 8px 10px;
  border-radius: 12px;
  text-align: center;
}
body.pres-std .hours-badge {
  font-weight: 700;
  text-align: center;
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
  padding: 8px 10px;
  border-radius: 12px;
}
body.pres-std .analysis-item {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--p-line);
}
body.pres-std .analysis-item:last-child { border-bottom: 0; }
body.pres-std .status-low { color: var(--p-danger); font-weight: 700; }
body.pres-std .status-mid { color: var(--p-warn); font-weight: 700; }
body.pres-std .status-good { color: var(--p-ok); font-weight: 700; }

@media (max-width: 1200px) {
  body.pres-std #menuToggle { display: inline-flex !important; }
  body.pres-std .app { grid-template-columns: 1fr; }
  body.pres-std .sidebar { display: none; }
  body.pres-std .hero,
  body.pres-std .cards-2,
  body.pres-std .cards-3,
  body.pres-std .screen-grid,
  body.pres-std .dashboard-grid,
  body.pres-std .flow,
  body.pres-std .profile-grid,
  body.pres-std .analysis-grid,
  body.pres-std .mini-card-grid,
  body.pres-std .bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  body.pres-std .bar-row .bar-track {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  body.pres-std .course-item {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    padding: 14px 0;
  }
  body.pres-std .course-item > div:first-child {
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
  body.pres-std .course-item .score-badge,
  body.pres-std .course-item .hours-badge {
    justify-self: start;
    width: auto;
    max-width: 100%;
  }
  body.pres-std .analysis-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  body.pres-std .analysis-item > div:last-child {
    justify-self: start;
  }
  body.pres-std .dashboard-shell {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.pres-std .dashboard-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  body.pres-std .slide { min-height: auto; }
  body.pres-std .screen-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--p-line);
  }
  body.pres-std .screen-main {
    min-width: 0;
    overflow-x: auto;
  }
}

/* QuickHR / презентации: узкий экран — шапка и слайды */
@media (max-width: 900px) {
  body.pres-std {
    overflow-x: auto;
  }
  body.pres-std .topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 10px;
  }
  body.pres-std .title-wrap {
    width: 100%;
    min-width: 0;
  }
  body.pres-std .title-wrap h2 {
    font-size: clamp(15px, 4.2vw, 20px);
    line-height: 1.25;
  }
  body.pres-std .title-wrap p {
    font-size: 13px;
  }
  body.pres-std .controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }
  body.pres-std .controls .btn {
    padding: 12px 10px;
    font-size: 13px;
    text-align: center;
    min-height: 44px;
    box-sizing: border-box;
  }
  body.pres-std .controls .btn.primary {
    grid-column: 1 / -1;
  }
  body.pres-std .slide {
    padding: 16px 12px;
    border-radius: 20px;
    max-width: 100%;
    box-sizing: border-box;
  }
  body.pres-std .panel {
    padding: 16px;
    max-width: 100%;
    overflow-x: auto;
  }
  body.pres-std .stage {
    padding: 12px;
    min-width: 0;
  }
  /* QuickHR: таблицы и строки не вылезают за экран */
  body.pres-std {
    overflow-x: hidden;
    max-width: 100%;
  }
  body.pres-std .app,
  body.pres-std .main {
    max-width: 100%;
    overflow-x: hidden;
  }
  body.pres-std .slide table {
    width: 100%;
    max-width: 100%;
    font-size: 12px;
    table-layout: fixed;
  }
  body.pres-std .slide table th,
  body.pres-std .slide table td {
    padding: 8px 6px;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
  }
  body.pres-std.hr-layout .bar-row {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  body.pres-std.hr-layout .bar-row .bar-track {
    width: 100% !important;
    min-width: 0;
    order: 0;
  }
  body.pres-std.hr-layout .bar-row > div:first-child {
    font-weight: 600;
  }
  body.pres-std.hr-layout .bar-pair .panel {
    min-width: 0;
    max-width: 100%;
  }
  body.pres-std .list-card .course-item,
  body.pres-std .slide .list-card .course-item {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  body.pres-std .dashboard-shell .screen-grid {
    min-width: 0;
  }
  body.pres-std .screen-main .screen {
    max-width: 100%;
    overflow-x: auto;
  }
  body.pres-std .cards-2 {
    min-width: 0;
  }
}

@media (min-width: 1201px) {
  body.pres-std #menuToggle { display: none !important; }
}

/* Мобильное меню: светлая тема для pres-std */
body.pres-std .mobile-menu {
  background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
}
body.pres-std.dark .mobile-menu {
  background: linear-gradient(180deg, #0f172a, #1e293b);
}
body.pres-std .mobile-menu .nav button {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
}
body.pres-std.dark .mobile-menu .nav button {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

/* =============================================================================
   Презентации: QuickReelt, QuickSchool (body.pres-shell)
   ============================================================================= */
body.pres-shell {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(135deg, #eef5fb, #f8fbff 55%, #edf4fb);
  color: #0f172a;
  overflow-x: hidden;
  min-height: 100vh;
}
body.pres-shell * { box-sizing: border-box; }
body.pres-shell {
  --s-line: rgba(15, 23, 42, 0.12);
  --s-panel: rgba(255, 255, 255, 0.95);
  --s-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}
body.pres-shell .app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
body.pres-shell .sidebar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--s-line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body.pres-shell .brand,
body.pres-shell .nav,
body.pres-shell .side-footer,
body.pres-shell .slide-shell,
body.pres-shell .card {
  box-shadow: var(--s-shadow);
}
body.pres-shell .brand {
  background: var(--s-panel);
  border: 1px solid var(--s-line);
  border-radius: 24px;
  padding: 18px 16px;
}
body.pres-shell .brand h1 { margin: 0 0 10px; font-size: 28px; font-weight: 800; }
body.pres-shell .brand p,
body.pres-shell p,
body.pres-shell li {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
}
body.pres-shell .nav {
  background: var(--s-panel);
  border: 1px solid var(--s-line);
  border-radius: 24px;
  padding: 10px;
}
body.pres-shell .nav button {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 16px;
  color: #0f172a;
  font-size: 15px;
  margin-bottom: 6px;
}
body.pres-shell .nav button:last-child { margin-bottom: 0; }
body.pres-shell .nav button.active { background: #dfe9ff; color: #173b7a; }
body.pres-shell .side-footer {
  margin-top: auto;
  background: var(--s-panel);
  border: 1px solid var(--s-line);
  border-radius: 20px;
  padding: 16px;
}
body.pres-shell .main { display: flex; flex-direction: column; min-width: 0; }
body.pres-shell .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--s-line);
  background: rgba(255, 255, 255, 0.55);
}
body.pres-shell .title-wrap h2 { margin: 0; font-size: 22px; font-weight: 800; }
body.pres-shell .title-wrap p { margin-top: 6px; color: #64748b; font-size: 14px; }
body.pres-shell .controls { display: flex; gap: 10px; flex-wrap: wrap; }
body.pres-shell .controls button,
body.pres-shell .topbar button.btn-sh {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 16px;
  padding: 11px 16px;
  color: #000;
  cursor: pointer;
  font-size: 14px;
}
body.pres-shell .controls button.primary,
body.pres-shell button.primary {
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  color: #fff;
  border: 0;
}
body.pres-shell .stage { padding: 22px; overflow: auto; flex: 1; }
body.pres-shell .slide { display: none; }
body.pres-shell .slide.active { display: block; }
body.pres-shell .slide-shell {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--s-line);
  border-radius: 34px;
  padding: 26px;
  min-height: calc(100vh - 130px);
}
body.pres-shell .hero,
body.pres-shell .cards-2,
body.pres-shell .cards-3 {
  display: grid;
  gap: 18px;
}
body.pres-shell .hero { grid-template-columns: 1.35fr 0.95fr; }
body.pres-shell .cards-2 { grid-template-columns: repeat(2, 1fr); }
body.pres-shell .cards-3 { grid-template-columns: repeat(3, 1fr); }
body.pres-shell .card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 22px;
  padding: 20px;
}
body.pres-shell .eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #bfd0f5;
  background: #edf3ff;
  color: #2f5aa3;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
body.pres-shell h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: #000;
}
body.pres-shell h4 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  color: #000;
}
body.pres-shell .tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
body.pres-shell .tag,
body.pres-shell .pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  color: #000;
}
body.pres-shell .metric {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
body.pres-shell ul { margin: 0; padding-left: 22px; }
body.pres-shell .footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1200px) {
  body.pres-shell #menuToggle { display: inline-flex !important; }
  body.pres-shell .app { grid-template-columns: 1fr; }
  body.pres-shell .sidebar { display: none; }
  body.pres-shell .hero,
  body.pres-shell .cards-2,
  body.pres-shell .cards-3 { grid-template-columns: 1fr; }
  body.pres-shell .slide-shell { min-height: auto; }
}
@media (min-width: 1201px) {
  body.pres-shell #menuToggle { display: none !important; }
}
body.pres-shell .mobile-menu {
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
}
body.pres-shell .mobile-menu .nav button {
  color: #0f172a;
  background: #fff;
  border: 1px solid var(--s-line);
}
