/* Индикатор загрузки BGE-M3 (model-status.js) */

.model-load {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 72px;
  z-index: 40;
  width: min(520px, calc(100vw - 32px));
  padding: 12px 16px 14px;
  border-radius: 14px;
  background: rgba(8, 14, 24, .88);
  border: 1px solid rgba(0, 229, 255, .22);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
  transition: opacity .35s ease, transform .35s ease;
}
.model-load.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}
.model-load.is-ready {
  border-color: rgba(52, 211, 153, .35);
}
.model-load__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.model-load__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text, #e2e8f0);
}
.model-load__pct {
  font: 600 12px var(--mono, 'JetBrains Mono', monospace);
  color: #00e5ff;
}
.model-load__bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.model-load__fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #0077c8, #00e5ff);
  transition: width .45s ease;
}
.model-load__sub {
  margin-top: 8px;
  font-size: 11.5px;
  color: rgba(226, 232, 240, .72);
  line-height: 1.35;
}

html[data-theme="light"] .model-load {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(0, 119, 200, .2);
  box-shadow: 0 8px 28px rgba(0, 60, 100, .12);
}
html[data-theme="light"] .model-load__title { color: #0f172a; }
html[data-theme="light"] .model-load__sub { color: #64748b; }

/* В приложении — над контентом, не перекрывает sidebar на desktop */
.app-layout .model-load {
  left: calc(50% + 120px);
  bottom: auto;
  top: 14px;
}
@media (max-width: 900px) {
  .app-layout .model-load {
    left: 50%;
    top: auto;
    bottom: 16px;
  }
}
