/* Discord Presence Widget (Lanyard) — Vendicated-ish */
.dpw {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  width: 340px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Theme tokens similar to Discord */
.dpw--dark {
  background: #2b2d31;
  color: #f2f3f5;
}
.dpw--dark .dpw__muted { color: #b5bac1; }
.dpw--dark .dpw__panel { background: #1e1f22; border: 1px solid rgba(255,255,255,.06); }

.dpw--light {
  background: #ffffff;
  color: #111827;
}
.dpw--light .dpw__muted { color: #6b7280; }
.dpw--light .dpw__panel { background: #f3f4f6; border: 1px solid rgba(0,0,0,.06); }

.dpw__header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.dpw__avatarWrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.dpw__avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: block;
}

.dpw__statusDot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 4px solid #2b2d31;
  box-sizing: content-box;
}

.dpw--light .dpw__statusDot { border-color: #ffffff; }

.dpw__statusDot--online { background: #23a55a; }
.dpw__statusDot--idle   { background: #f0b232; }
.dpw__statusDot--dnd    { background: #f23f43; }
.dpw__statusDot--offline{ background: #80848e; }

.dpw__nameWrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.dpw__nameRow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.dpw__name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dpw__tag {
  font-size: 12px;
  line-height: 1.1;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.dpw--light .dpw__tag { background: rgba(0,0,0,.06); }

.dpw__statusText {
  font-size: 12.5px;
  line-height: 1.2;
}

.dpw__body {
  padding: 0 12px 12px 12px;
  display: grid;
  gap: 8px;
}

.dpw__panel {
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.dpw__panelIcon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  opacity: .9;
}

.dpw__panelMain { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dpw__panelTitle { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.dpw__panelSub { font-size: 12px; line-height: 1.2; }
.dpw__ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dpw__spotifyArt {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex: 0 0 40px;
}

.dpw__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  overflow: hidden;
  margin-top: 6px;
}
.dpw--light .dpw__bar { background: rgba(0,0,0,.08); }

.dpw__barFill {
  height: 100%;
  width: 0%;
  background: currentColor;
  opacity: .8;
}

.dpw__error, .dpw__loading {
  padding: 12px;
  font-size: 13px;
}
