/* Оболочка демо-сайта поверх app.css «Цифрового паспорта». Бокового меню нет (владелец 2026-11-26): обзор — карточки,
   открытый проект — во весь экран под тонкой полосой «← Все проекты · название · тема». */
html, body { height: 100%; }
body { display: flex; flex-direction: column; overflow: hidden; }
main { flex: 1; min-height: 0; height: auto; }
.ov-head { display: flex !important; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ov-head > div { display: grid; gap: 8px; }
.theme-tog { position: static; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); border: 1px solid var(--edge); color: var(--text); }
.pbar { display: flex; align-items: center; gap: 12px; flex: none; height: 52px; padding: 0 16px; padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg); border-bottom: 1px solid var(--border-subtle); }
.pbar[hidden] { display: none; }
.pbar .tbtn { height: 34px; padding: 0 12px 0 8px; }
.pbar b { font-size: 14px; font-weight: 650; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar span { font: 500 11px/1 var(--mono); color: var(--dim); }
.pbar .theme-tog { margin-left: auto; width: 34px; height: 34px; }
main.has-pv { padding: 0; overflow: hidden; scrollbar-gutter: auto; }
#pv { position: relative; height: 100%; background: var(--st-bg); }
#pv iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--st-bg); }
#pv-load { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .25s; }
#pv-load span { width: 160px; height: 3px; border-radius: 2px; background: var(--edge); overflow: hidden; position: relative; }
#pv-load span::after { content: ""; position: absolute; inset: 0 60% 0 0; background: var(--strong); border-radius: 2px; animation: pv 1.1s ease-in-out infinite; }
@keyframes pv { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
#pv.ready #pv-load { opacity: 0; }
.cards .pill { margin-top: 8px; }
.block > h2 { margin-top: 4px; }
@media (max-width: 1200px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: minmax(0, 1fr); } .pbar span { display: none; } }
@media (max-width: 980px) {   /* app.css паспорта на телефоне отдаёт прокрутку странице — у оболочки прокручивается main */
  html, body { height: 100%; }
  body { overflow: hidden; }
  main { height: auto; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) { #pv-load span::after { animation: none; } }
