html,
body {
  min-height: 100%;
}

body {
  margin: 0;
}

#shellViewport,
.dc-shell-page-host {
  display: contents;
}

#shellLoading {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 2147483647;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.88);
  color: #fff;
  font: 700 12px/1.2 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

#shellLoading.hidden {
  display: none;
}

/*
 * ルートを起動できなかったときの器（app-shell.js showRouteFailureFallback・2026-09-20）。
 * シェルは「どのページも載っていない」状態で出すので、ページ側の器の CSS は当てにできず、
 * ここで最小限だけ持つ。画面中央の 1 枚で、押せるのは「もう一度」だけ。
 */
.dc-shell-error {
  position: fixed;
  inset: 0;
  z-index: 2147483646; /* #shellLoading（最大値）のすぐ下 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: #fff;
  color: #171717;
  font: 500 15px/1.6 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.dc-shell-error-retry {
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font: 700 14px/1.2 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
}
