/* Odoo Demos catalog shell (the UI itself is drawn by egui on the canvas). */
html, body { margin: 0; height: 100%; overflow: hidden; background: #0e0f12; color: #ecedef;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
canvas#wvse-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
#wvse-boot { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; background: #0e0f12; text-align: center; padding: 16px; }
#wvse-boot[hidden] { display: none; }
#wvse-boot .title { font-weight: 800; font-size: 28px; margin: 12px 0 0; letter-spacing: -0.5px; }
#wvse-boot .hint { color: #9aa0ac; font-size: 14px; margin: 4px 0; max-width: 520px; }
#wvse-boot img { border-radius: 50%; }
@media (prefers-color-scheme: light) {
  html, body, #wvse-boot { background: #f4f4f2; color: #15171c; }
  #wvse-boot .hint { color: #555b67; }
}
@media (prefers-reduced-motion: no-preference) {
  #wvse-boot img { animation: wvse-float 2.4s ease-in-out infinite; }
  @keyframes wvse-float { 50% { transform: translateY(-6px); } }
}

/* ---- Semantic HTML layer (ADR-035) -------------------------------------------------------
 * While the canvas runs, the HTML is visually hidden but read by assistive technologies and
 * indexed by search engines. A keyboard user who Tabs into it gets it as a visible panel
 * (never an invisible focus). Without scripting, or when WebAssembly cannot start, it IS the page. */
.wvse-sr, .wvse-html { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0; }
.wvse-html:focus-within { position: fixed; z-index: 20; top: 16px; left: 16px; width: auto; height: auto;
  max-width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: 0; padding: 16px 20px;
  overflow: auto; clip-path: none; white-space: normal; border-radius: 12px; background: #16181d;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .55); outline: 2px solid #d6222b; }
.wvse-doc { line-height: 1.5; font-size: 16px; }
.wvse-doc a { color: #ff6b70; }
.wvse-doc a:focus-visible { outline: 3px solid #ff6b70; outline-offset: 2px; }
.wvse-doc header nav ul, .wvse-doc footer ul { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; list-style: none; }
.wvse-doc ul { padding-left: 1.2em; }
.wvse-doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; }
.wvse-doc dd { margin: 0; }
.wvse-doc table { border-collapse: collapse; width: 100%; }
.wvse-doc th, .wvse-doc td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #2a2d35; }
.wvse-doc footer { margin-top: 32px; font-size: 14px; color: #9aa0ac; }
@media (prefers-color-scheme: light) {
  .wvse-html:focus-within { background: #ffffff; box-shadow: 0 8px 40px rgba(0, 0, 0, .2); }
  .wvse-doc a { color: #b01820; }
  .wvse-doc a:focus-visible { outline-color: #b01820; }
  .wvse-doc th, .wvse-doc td { border-bottom-color: #d9dadd; }
  .wvse-doc footer { color: #555b67; }
}
/* HTML version as the page: no scripting, or the WebAssembly catalog failed to start. */
@media (scripting: none) {
  html, body { height: auto; overflow: auto; }
  canvas#wvse-canvas { display: none; }
  #wvse-boot { position: static; padding: 24px 16px 0; }
  #wvse-boot img, #wvse-boot .title, #wvse-boot #wvse-boot-msg { display: none; }
  .wvse-html { position: static; width: auto; height: auto; margin: 0 auto; padding: 8px 16px 32px; max-width: 960px;
    overflow: visible; clip-path: none; white-space: normal; }
}
html.wvse-fallback, html.wvse-fallback body { height: auto; overflow: auto; }
html.wvse-fallback canvas#wvse-canvas { display: none; }
html.wvse-fallback #wvse-boot { position: static; padding: 24px 16px 0; }
html.wvse-fallback .wvse-html { position: static; width: auto; height: auto; margin: 0 auto; padding: 8px 16px 32px;
  max-width: 960px; overflow: visible; clip-path: none; white-space: normal; box-shadow: none; outline: none; }
#wvse-boot .wvse-reload { margin-top: 16px; padding: 10px 22px; font: 600 14px system-ui, sans-serif; color: #fff;
  background: #c8102e; border: 0; cursor: pointer; }
