:root {
  --bg: #16181d;
  --fg: #9a9a9a;
  --strong: #e6e6e6;
  --track: #2c2f36;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.5 system-ui, sans-serif;
}
/* wland's windows go here; composer's window is kept full screen in it. */
#desktop {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
#desktop .wland-window {
  box-shadow: none;
}
#veil {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg);
  transition: opacity 300ms 250ms;
}
#veil[data-done] {
  opacity: 0;
  pointer-events: none;
}
#veil b {
  color: var(--strong);
  font-size: 18px;
  font-weight: 600;
}
#bar {
  width: min(320px, 70vw);
  height: 4px;
  border-radius: 2px;
  background: var(--track);
  overflow: hidden;
}
#fill {
  width: 0;
  height: 100%;
  background: var(--strong);
  transition: width 200ms linear;
}
#note {
  font-variant-numeric: tabular-nums;
}
#veil[data-failed] #note {
  color: #ff8a80;
}
#log {
  position: fixed;
  inset: 0;
  z-index: 20;
  margin: 0;
  padding: 12px;
  overflow: auto;
  background: rgb(0 0 0 / 85%);
  color: var(--strong);
  font: 12px/1.4 ui-monospace, monospace;
  white-space: pre-wrap;
}
#log[hidden],
#fps[hidden] {
  display: none;
}
#fps {
  position: fixed;
  right: 8px;
  bottom: 8px;
  z-index: 11;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgb(0 0 0 / 60%);
  color: var(--strong);
  font: 12px/1.4 ui-monospace, monospace;
  pointer-events: none;
}
#note a { color: var(--strong); }
#note { text-align: center; }

/* files.js: one line while files move between Workbench and the browser's machine. */
#files-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 10;
  max-width: 80vw;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  font: 13px system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
