/* Ring bar added to the top of every page. Everything is prefixed dr- so it
   doesn't clash with the host page's styles. */
.dr-ring, .dr-ring * { box-sizing: border-box; }
.dr-ring {
  position: relative;
  z-index: 2000;
  background: #050505;
  color: #bdbdbd;
  border-bottom: 1px solid #1f1f1f;
  font: 500 13px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: left;
}
.dr-inner {
  max-width: 1200px; margin: 0 auto; padding: 7px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.dr-label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dr-mark { color: #facc15; font-size: 11px; }
.dr-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-text b { color: #fff; font-weight: 700; }
.dr-nav { display: flex; align-items: center; gap: 6px; flex: none; }
.dr-ring a { color: #e5e5e5; text-decoration: none; }
.dr-step, .dr-all > summary {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border: 1px solid #2d2d2d; border-radius: 999px;
  color: #e5e5e5; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.dr-step:hover, .dr-all > summary:hover, .dr-all[open] > summary { background: #1a1a1a; border-color: #4a4a4a; }
.dr-all { position: relative; }
.dr-all > summary { list-style: none; font-weight: 700; color: #fff; }
.dr-all > summary::-webkit-details-marker { display: none; }

.dr-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: min(440px, calc(100vw - 24px));
  max-height: min(70vh, 560px); overflow: auto;
  background: #0d0d0d; border: 1px solid #2d2d2d; border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
  padding: 6px;
}
.dr-panel ul { list-style: none; margin: 0; padding: 0; }
.dr-panel li a {
  display: grid; grid-template-columns: 10px 1fr auto; grid-template-areas: "dot name price" ". tag tag";
  column-gap: 10px; row-gap: 2px; align-items: center;
  padding: 10px 12px; border-radius: 8px;
}
.dr-panel li a:hover { background: #1a1a1a; }
.dr-panel li.is-here a { background: #161616; }
.dr-dot { grid-area: dot; width: 8px; height: 8px; border-radius: 50%; }
.dr-name { grid-area: name; color: #fff; font-weight: 700; font-size: 14px; }
.dr-name i { font-style: normal; font-weight: 600; font-size: 11px; color: #facc15; margin-left: 6px; }
.dr-tag { grid-area: tag; color: #9a9a9a; font-size: 12.5px; }
.dr-price { grid-area: price; color: #d4d4d4; font-size: 12px; white-space: nowrap; }

@media (max-width: 720px) {
  .dr-step-name { display: none; }
}
@media (max-width: 520px) {
  .dr-text { font-size: 12px; }
  .dr-inner { padding: 6px 12px; }
}
