#pandora-root {
  --bob: 4.6s;
  position: fixed;
  z-index: 80;
  top: calc(10px + env(safe-area-inset-top));
  right: calc(10px + env(safe-area-inset-right));
  width: max-content;
  max-width: min(92vw, 340px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: #f4f4f4;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
}
#pandora-root[data-vibe="sharp"] { --bob: 1.4s; }
#pandora-root[data-vibe="playful"] { --bob: 0.85s; }
#pandora-root[data-vibe="hush"] { --bob: 7.5s; }
#pandora-root[data-vibe="calm"] { --bob: 4.6s; }
#pandora-root * { box-sizing: border-box; }
#pandora-root a { color: inherit; text-decoration: none; }
#pandora-root button,
#pandora-root input,
#pandora-root select {
  font: inherit;
  color: #f4f4f4;
  min-height: 0;
  width: auto;
  margin: 0;
  border-radius: 999px;
}
#pandora-root .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f4f4;
  color: #111;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
#pandora-root .cluster { display: flex; align-items: flex-start; gap: 8px; }
#pandora-root .avatar {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  background: #111;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
}
#pandora-root .avatar-art,
#pandora-root .avatar-art svg,
#pandora-root .avatar-art img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: cover;
}
#pandora-root .avatar-art svg { animation: pandora-float var(--bob) ease-in-out infinite; }
#pandora-root .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
#pandora-root .companion-name,
#pandora-root .companion-vibe { margin: 0; }
#pandora-root .companion-name { font-weight: 700; }
#pandora-root .companion-vibe { color: #bdbdbd; font-size: 12px; }
#pandora-root .dock { display: flex; gap: 6px; }
#pandora-root .dock a,
#pandora-root .dock button,
#pandora-root .tune {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  border-radius: 50%;
  background: #161616;
  color: #f4f4f4;
  cursor: pointer;
}
#pandora-root .desk-button,
#pandora-root .tune {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
}
#pandora-root .dock svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#pandora-root .quick { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: min(92vw, 280px); }
#pandora-root .quick a {
  min-height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #333;
  border-radius: 999px;
  background: #161616;
  font-size: 13px;
  font-weight: 650;
}
#pandora-root .panel {
  width: min(92vw, 320px);
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 12px;
  border: 1px solid #2e2e2e;
  border-radius: 18px;
  background: #0c0c0c;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
#pandora-root .apps-title { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #cfcfcf; }
#pandora-root .apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#pandora-root .apps-grid a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #2e2e2e;
  border-radius: 12px;
  background: #141414;
}
#pandora-root .customize label,
#pandora-root .customize legend { display: block; margin: 8px 0 4px; color: #cfcfcf; }
#pandora-root .customize input[type="text"],
#pandora-root .customize select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #333;
  border-radius: 12px;
  background: #141414;
}
#pandora-root .skins { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
#pandora-root .skins label { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 36px; }
#pandora-root .hint { min-height: 1.2em; color: #d7c27a; margin: 8px 0 0; }
#pandora-root .clear-photo {
  margin-top: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #333;
  background: #161616;
  cursor: pointer;
}
#pandora-root :focus-visible { outline: 2px solid #f4f4f4; outline-offset: 2px; }
@media (max-width: 719px) {
  #pandora-root:not([data-open="true"]) .side,
  #pandora-root:not([data-open="true"]) .panel { display: none; }
}
@keyframes pandora-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  #pandora-root .avatar-art svg { animation: none; }
}
