/* Панель публичного демо (webapp/src/demo.js). Только в сборке демо. */

#demo-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 8px;
  padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: #0B1F3A; color: #fff; font-size: 14px;
  box-shadow: 0 -4px 16px rgba(17, 24, 39, .18);
}
body.has-demo-bar { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
.demo-tag {
  background: #F59E0B; color: #26221F; font-weight: 700; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; border-radius: 6px; padding: 3px 8px; flex: none;
}
.demo-as { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.demo-as > span { opacity: .8; white-space: nowrap; }
#demo-role {
  min-width: 0; max-width: 100%; flex: 1 1 auto; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.3);
  background: #13305A; color: #fff; font: inherit; padding: 0 10px;
}
.demo-btn {
  flex: none; height: 40px; min-width: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.3);
  background: transparent; color: #fff; font: inherit; padding: 0 12px; cursor: pointer; white-space: nowrap;
}
.demo-btn:hover, .demo-btn:focus-visible { background: rgba(255,255,255,.12); }
.demo-i { font-weight: 700; font-style: italic; font-family: Georgia, serif; padding: 0; }

/* телефон: подписи кнопок прячем, остаются значки; «Смотреть как» — только список */
@media (max-width: 640px) {
  .demo-as > span, .demo-btn span { display: none; }
  .demo-btn { padding: 0 10px; }
  #demo-bar { gap: 6px; }
}
@media (min-width: 900px) {
  .demo-as { flex: 0 1 420px; }
  #demo-bar { justify-content: center; }
}

.demo-login-note {
  background: #FFFBEB; border: 1px solid #FCD34D; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
  font-size: 14px; line-height: 1.45;
}
.demo-login-note p { margin-top: 4px; color: #4A433E; }

.demo-sheet .sheet h3 { margin: 16px 0 6px; font-size: 15px; }
.demo-sheet .sheet > p { margin-top: 8px; }
.demo-pins { list-style: none; display: grid; gap: 4px; margin-bottom: 12px; }
.demo-pins li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 6px 0; }
.demo-pins b { font-variant-numeric: tabular-nums; letter-spacing: .12em; }

/* В демо не бывает: регистрации, «забыл пароль», входа через Telegram, удаления компании */
.izr-demo #to-signup, .izr-demo #show-forgot, .izr-demo #tg-login, .izr-demo #co-delete { display: none !important; }
body.demo-nobot #tg-link-card { display: none !important; }
