.pb-guide {
  --pb-guide-surface: #fffdf6;
  --pb-guide-ink: #261825;
  --pb-guide-muted: #654b5e;
  --pb-guide-line: #ded1db;
  --pb-guide-brand: #54213f;
  --pb-guide-ring: #ffc542;
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  pointer-events: none;
  color: var(--pb-guide-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.pb-guide *, .pb-guide *::before, .pb-guide *::after { box-sizing: border-box; }
.pb-guide [hidden] { display: none !important; }

.pb-guide__panel, .pb-guide__clip {
  color: var(--pb-guide-ink);
  background: var(--pb-guide-surface);
  border: 1px solid var(--pb-guide-line);
  border-radius: 18px;
  box-shadow: 0 12px 38px rgb(26 10 26 / 38%);
  pointer-events: auto;
  text-align: start;
  overflow: auto;
  overscroll-behavior: contain;
}

.pb-guide__panel {
  position: fixed;
  z-index: 3;
  width: min(24rem, calc(100% - 24px));
  max-height: 48vh;
  max-height: 48dvh;
  margin: 0;
  padding: 13px 15px 14px;
  scrollbar-width: thin;
}

.pb-guide__top, .pb-guide__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.pb-guide__top { justify-content: space-between; }
.pb-guide__actions { margin-block-start: 10px; }
.pb-guide__label { color: var(--pb-guide-brand); font-size: .8rem; font-weight: 750; }
.pb-guide__counter { margin: 2px 0 4px; color: var(--pb-guide-muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.pb-guide__heading, .pb-guide__clip-title {
  margin: 0 0 6px;
  color: var(--pb-guide-ink);
  font-family: inherit;
  font-size: clamp(1.08rem, 3vw, 1.35rem);
  font-weight: 780;
  line-height: 1.18;
  letter-spacing: -.015em;
  text-transform: none;
  overflow-wrap: anywhere;
}
.pb-guide__text, .pb-guide__status, .pb-guide__clip-status {
  margin: 6px 0 0;
  color: var(--pb-guide-ink);
  font-size: .92rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}
.pb-guide__status, .pb-guide__clip-status { color: var(--pb-guide-brand); font-size: .83rem; font-weight: 700; }
.pb-guide__status:empty, .pb-guide__clip-status:empty { margin: 0; }

.pb-guide button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--pb-guide-brand);
  font: 720 .8rem / 1.2 system-ui, sans-serif;
  text-align: center;
  text-transform: none;
  white-space: normal;
  cursor: pointer;
  box-shadow: none;
}
.pb-guide button.pb-guide__close { padding-inline: 8px; text-decoration: underline; }
.pb-guide button.pb-guide__primary { background: var(--pb-guide-brand); color: #fff; }
.pb-guide button.pb-guide__secondary { border-color: #ad96a6; }
.pb-guide button:hover { background: #efe3ea; color: var(--pb-guide-brand); }
.pb-guide button.pb-guide__primary:hover { background: #722954; color: #fff; }
.pb-guide :focus-visible { outline: 3px solid #a64e09; outline-offset: 2px; }
.pb-guide__heading:focus { outline: none; }

.pb-guide__focus {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  border: 3px solid var(--pb-guide-ring);
  border-radius: 8px;
  box-shadow: 0 0 0 2px #211423, inset 0 0 0 1px #211423;
}
.pb-guide__arrow {
  position: fixed;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px #211423) drop-shadow(0 -1px 1px #211423);
}
.pb-guide__arrow--hidden { visibility: hidden; }
.pb-guide__arrow > path { fill: none; stroke: var(--pb-guide-ring); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

.pb-guide__clip {
  position: fixed;
  z-index: 4;
  inset: 0;
  width: min(42rem, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(14px, 4vw, 24px);
}
.pb-guide__clip::backdrop { background: rgb(25 12 22 / 72%); }
.pb-guide__clip-title { margin-block-end: 12px; }
.pb-guide__media {
  display: block;
  width: 100%;
  max-height: 60vh;
  max-height: 60dvh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 9px;
  background: #1a1017;
}

@media (max-width: 480px) {
  .pb-guide__panel { padding: 9px 12px 12px; }
  .pb-guide__top { gap: 3px; }
  .pb-guide__actions { gap: 5px; }
  .pb-guide button { padding-inline: 9px; }
}

@media (forced-colors: active) {
  .pb-guide .pb-guide__focus { border-color: Highlight; }
  .pb-guide__arrow > path { stroke: Highlight; }
  .pb-guide button { border-color: ButtonText; }
}
