/* Load after Line Strike style.css. The shell bar is a sibling before #crt. */
html {
  height: 100%;
  min-height: 0;
}
body {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}
nav.ls-shell-bar {
  position: relative;
  z-index: 99999;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: calc(4px + env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 4px max(8px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid #35486e;
  background: #0b1531;
  color: #fff5db;
  font: 700 13px/1.3 system-ui, sans-serif;
}
nav.ls-shell-bar :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #55e5ff;
  border-radius: 8px;
  background: #182b4a;
  color: #fff5db;
  font: inherit;
  line-height: 1.3;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
nav.ls-shell-bar [data-ls-exit-fullscreen] {
  display: none !important;
  background: #ff8840;
  border-color: #ff8840;
  color: #070e23;
}
/* Let the displayed fullscreen state, not a stale button property, own its label. */
html.fs-mode nav.ls-shell-bar [data-ls-exit-fullscreen],
html:fullscreen nav.ls-shell-bar [data-ls-exit-fullscreen] { display: inline-flex !important; }
nav.ls-shell-bar [hidden] { display: none !important; }
nav.ls-shell-bar :is(a, button):focus-visible {
  outline: 3px solid #e8ff58;
  outline-offset: 2px;
}
nav.ls-shell-bar > span {
  flex: 1 1 90px;
  min-width: 0;
  color: #b7c6e2;
  font-size: 11px;
  overflow-wrap: anywhere;
}
/* Use the bar's actual wrapped height, rather than assuming a fixed subtraction. */
body > #crt,
html.fs-mode body > #crt {
  position: relative;
  inset: auto;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  flex: 1 1 0%;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 0;
  min-height: 0;
  max-height: none;
  margin: 0;
}
@media (max-width: 360px) {
  nav.ls-shell-bar { gap: 4px 6px; }
  nav.ls-shell-bar :is(a, button) { padding-inline: 8px; font-size: 12px; }
  nav.ls-shell-bar > span { flex-basis: 100%; }
}
