html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0b0e14;
  color: #e6e6e6;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

#fractalCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  cursor: crosshair;
}

#ui {
  position: fixed;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  background: rgba(20, 24, 33, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px;
}

#fractalSelect {
  background: #151a22;
  color: #e6e6e6;
  border: 1px solid #323a46;
  border-radius: 6px;
  padding: 6px 8px;
  outline: none;
}

#help {
  font-size: 12px;
  color: #b7c1cc;
  opacity: 0.9;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Drag rectangle overlay */
.selection-rect {
  position: fixed;
  border: 1px dashed #7fb3ff;
  background: rgba(127, 179, 255, 0.1);
  pointer-events: none;
  z-index: 9;
}

/* Rendering status indicator */
#status {
    position: fixed;
    right: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 11;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(20, 24, 33, 0.8);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    color: #cfe6ff;
    font-size: 13px;
    letter-spacing: 0.2px;
}

#status[hidden] {
    display: none;
}

#status .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #7fb3ff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    opacity: 0.9;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#status .label {
    opacity: 0.95;
}
