/* Appearance controls and independent, non-interactive decoration. */
body { isolation: isolate; }
#view-app, #view-login { position: relative; z-index: 1; }
.login-wrap { background: transparent; }
.appearance-host { flex: 0 0 auto; }
.appearance-login-host { position: fixed; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 35; }
.appearance-control { position: relative; }
.appearance-trigger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-2); background: transparent; cursor: pointer; }
.appearance-trigger:hover { color: var(--accent-ink); border-color: var(--line); background: var(--accent-soft); }
.appearance-trigger svg { transition: transform 160ms ease-out; }
.appearance-trigger:hover svg { transform: rotate(-10deg); }
.workbench-empty > .icon { display: block; width: 28px; height: 28px; margin-bottom: 12px; color: var(--text-2); }
.appearance-trigger:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.ambient-particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ambient-particles[hidden] { display: none; }
.completion-sparkles { position: fixed; width: 0; height: 0; pointer-events: none; z-index: 120; color: var(--accent); }
.completion-sparkles span { position: absolute; width: 5px; height: 5px; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: completion-sparkle 600ms ease-out both; }
@keyframes completion-sparkle { from { opacity: .8; transform: translate(-50%, -50%) scale(.6); } to { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) scale(1); } }
@media (max-width: 767px) {
  .topbar { column-gap: 4px; }
  .appearance-login-host { top: max(12px, env(safe-area-inset-top)); right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .appearance-trigger svg { transition: none; }
  .appearance-trigger:hover svg { transform: none; }
  .ambient-particles, .completion-sparkles { display: none; }
  .completion-sparkles span { animation: none; }
}
