/* Loading skeletons: grey shapes in the layout of the real page, shown until the data is
   there (rule: a skeleton has the real page's shape). html.skel-home is set before the
   first paint by skel-init.js when this browser was signed in last time, so the signed-in
   layout (navbar, sidebar, page) shows at once instead of the sign-in page. */
html.skel-home body.is-auth .bar { display: flex; }
html.skel-home body.is-auth .shell { display: grid; }
html.skel-home body.is-auth .side { display: flex; }
html.skel-home body.is-auth .shell > main { max-width: 1180px; padding: 44px clamp(20px, 4vw, 56px) 80px; }
html.skel-home .skel-auth-view, html:not(.skel-home) .skel-home-view { display: none; }

/* Skeletons appear only when loading takes longer than a quarter second: on a fast load
   the real content simply appears, without a grey flash ("blinking"). */
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--fill) 25%, var(--sheet) 50%, var(--fill) 75%);
  background-size: 200% 100%; animation: sk-appear 0.2s ease 0.25s both, sk-shimmer 1.3s ease-in-out 0.25s infinite; }
#loading .sk-card, #loading .group, #loading .sk-figures, .sk-question { animation: sk-appear 0.2s ease 0.25s both; }
@keyframes sk-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-line { height: 12px; margin: 8px 0; }
.sk-label { width: 140px; height: 11px; margin: 0 0 10px; }
.sk-title { height: 38px; margin: 6px 0 12px; border-radius: 10px; }
.sk-big { height: 52px; margin: 10px 0; border-radius: 12px; }
.sk-input { height: 46px; margin-top: 8px; border-radius: 12px; }
.sk-button { height: 44px; margin-top: 20px; border-radius: 980px; }
.sk-pill { display: inline-block; width: 110px; height: 34px; margin-right: 6px; border-radius: 980px; }
.sk-num { width: 48px; height: 30px; margin-top: 4px; }
.sk-avatar { width: 34px; height: 34px; border-radius: 50%; }
.w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; } .w100 { width: 100%; }

/* Skeleton blocks in the shapes of the real cards */
.sk-card { padding: 22px 24px; border-radius: 14px; background: var(--sheet); }
.sk-card .sk-line:first-child { margin-top: 0; }
.sk-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 100px 120px 110px; gap: 16px; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.sk-row:last-child { border-bottom: 0; }
.sk-row .sk-line { margin: 0; }
.sk-next { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 20px; align-items: center; }
.sk-journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .sk-journey { grid-template-columns: 1fr; } }
.sk-side { padding: 9px 10px; }
.sk-side .sk-line { margin: 0; }
.sk-figures { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-radius: 14px; background: var(--sheet); }
.sk-figures div { padding: 18px 20px; }
.sk-figures div + div { border-left: 1px solid var(--rule); }
.sk-question { padding: 16px 18px; border-radius: 14px; background: var(--sheet); }
.sk-stack { display: grid; gap: 10px; }

@media (max-width: 900px) {
  html.skel-home body.is-auth .shell { display: block; }
  html.skel-home body.is-auth .side { display: flex; }
  .sk-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sk-row { grid-template-columns: 24px minmax(0, 1fr); }
  .sk-row > :nth-child(n + 3) { display: none; }
  .sk-next, .sk-journey { grid-template-columns: 1fr; }
  .sk-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .sk { animation: sk-appear 0s 0.25s both; }
}
