/*
 * infra#5230 — structure shown inside #root until React mounts (and replaces it): menu column, bar,
 * content. Plain HTML + CSS, no script, no tenant data. Hidden unless public/shell-skeleton.js marked
 * the page with data-boot-shell (public routes and the bare landing root stay without a menu).
 * The colours are the tokens' values of the light and dark theme (verified by a test against
 * @toitrack/design-tokens): the stylesheet of the app is not there yet when this paints.
 */
html { background: hsl(220 14% 97%); }
html[data-boot-theme="dark"] { background: hsl(222 47% 8%); color-scheme: dark; }

#boot-shell { display: none; }
html[data-boot-shell] #boot-shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: hsl(220 14% 97%);
  --boot-card: hsl(0 0% 100%);
  --boot-block: hsl(214 32% 95%);
  --boot-line: hsl(214 32% 91%);
}
html[data-boot-theme="dark"][data-boot-shell] #boot-shell {
  background: hsl(222 47% 8%);
  --boot-card: hsl(222 40% 11%);
  --boot-block: hsl(217 33% 17%);
  --boot-line: hsl(217 33% 18%);
}
#boot-shell .boot-menu {
  display: none;
  width: 4rem;
  flex-shrink: 0;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
  border-right: 1px solid var(--boot-line);
  background: var(--boot-card);
}
#boot-shell .boot-main { display: flex; min-width: 0; flex: 1; flex-direction: column; }
#boot-shell .boot-bar {
  display: flex;
  height: 3.5rem;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.75rem;
  border-bottom: 1px solid var(--boot-line);
  background: var(--boot-card);
}
#boot-shell .boot-content { flex: 1; padding: 1rem 1rem 5rem; overflow: hidden; }
#boot-shell .boot-bottom {
  position: fixed;
  inset: auto 0 0 0;
  display: flex;
  height: 3.5rem;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--boot-line);
  background: var(--boot-card);
}
#boot-shell .boot-block {
  border-radius: 0.375rem;
  background: var(--boot-block);
  animation: boot-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
#boot-shell .boot-menu .boot-block { height: 2rem; }
#boot-shell .boot-bar .boot-block:nth-child(1) { height: 1.5rem; width: 10rem; }
#boot-shell .boot-bar .boot-block:nth-child(2) { height: 2rem; width: 2rem; margin-left: auto; border-radius: 9999px; }
#boot-shell .boot-bottom .boot-block { height: 2rem; width: 3rem; }
#boot-shell .boot-title { height: 3rem; width: 66%; margin-bottom: 1rem; }
#boot-shell .boot-body { height: 10rem; width: 100%; margin-bottom: 1rem; }
#boot-shell .boot-body-large { height: 16rem; }
html[data-boot-shell="portal"] #boot-shell .boot-menu { display: none !important; }

@media (min-width: 820px) {
  html[data-boot-shell]:not([data-boot-shell="portal"]) #boot-shell .boot-menu { display: flex; }
  #boot-shell .boot-bar { height: 3rem; padding: 0 1rem; }
  #boot-shell .boot-content { padding-bottom: 1.25rem; }
  #boot-shell .boot-bottom { display: none; }
}
@media (min-width: 1440px) {
  #boot-shell .boot-menu { width: 13.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  #boot-shell .boot-block { animation: none; }
}
@keyframes boot-pulse { 50% { opacity: 0.5; } }
