#prd-review-root {
  --prd-accent: #6657e8;
  --prd-bg: #ffffff;
  --prd-panel: #ffffff;
  --prd-line: #e7e5eb;
  --prd-text: #1d1b22;
  --prd-muted: #706b78;
  position: relative;
  z-index: 2147483000;
  color: var(--prd-text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.prd-launcher {
  position: fixed;
  right: 18px;
  top: 14px;
  z-index: 2147483002;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #fff;
  background: rgba(28, 26, 34, 0.92);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font: 600 13px/1 inherit;
}

.prd-launcher:hover,
.prd-launcher.is-open {
  border-color: rgba(151, 132, 255, 0.75);
  background: #292536;
}

.prd-launcher.is-open {
  opacity: 0;
  pointer-events: none;
}

.prd-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483001;
  width: min(540px, calc(100vw - 32px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background: var(--prd-bg);
  border-left: 1px solid var(--prd-line);
  box-shadow: -20px 0 55px rgba(0, 0, 0, 0.22);
  transform: translateX(102%);
  transition: transform 180ms ease;
}

.prd-drawer.is-left {
  right: auto;
  left: 0;
  border-right: 1px solid var(--prd-line);
  border-left: 0;
  box-shadow: 20px 0 55px rgba(0, 0, 0, 0.22);
  transform: translateX(-102%);
}

.prd-drawer.is-open {
  transform: translateX(0);
}

.prd-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--prd-line);
}

.prd-drawer-header small {
  display: block;
  margin-bottom: 5px;
  color: #6657e8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prd-drawer-header h2 {
  margin: 0;
  color: var(--prd-text);
  font-size: 18px;
  line-height: 1.35;
}

.prd-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.prd-dock-toggle,
.prd-close {
  height: 30px;
  border: 0;
  border-radius: 8px;
  color: var(--prd-muted);
  background: #f3f2f5;
  cursor: pointer;
}

.prd-dock-toggle {
  padding: 0 10px;
  font: 600 11px/1 inherit;
}

.prd-dock-toggle:hover,
.prd-close:hover {
  color: #5144c7;
  background: #ece9ff;
}

.prd-close {
  width: 30px;
  font-size: 18px;
}

.prd-toolbar {
  display: grid;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--prd-line);
  background: #faf9fb;
}

.prd-summary {
  margin: 0;
  color: var(--prd-muted);
  font-size: 12px;
  line-height: 1.65;
}

.prd-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prd-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: #eeecf1;
}

.prd-tabs button,
.prd-annotation-toggle {
  height: 30px;
  border: 0;
  border-radius: 7px;
  color: var(--prd-muted);
  background: transparent;
  cursor: pointer;
  font: 600 12px/1 inherit;
}

.prd-tabs button {
  padding: 0 10px;
}

.prd-tabs button.is-active {
  color: #27242c;
  background: #fff;
  box-shadow: 0 1px 4px rgba(32, 27, 42, 0.1);
}

.prd-annotation-toggle {
  flex: 0 0 auto;
  padding: 0 11px;
  color: #6657e8;
  border: 1px solid #c9c2ff;
}

.prd-annotation-toggle.is-active {
  color: #fff;
  background: var(--prd-accent);
  border-color: var(--prd-accent);
}

.prd-content {
  overflow-y: auto;
  padding: 16px 20px 30px;
  scrollbar-width: thin;
  scrollbar-color: #d5d1da transparent;
}

.prd-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 10px;
  color: #403c46;
  font-size: 12px;
}

.prd-section-title span {
  color: #77727f;
  font-weight: 400;
}

.prd-card {
  width: 100%;
  margin: 0 0 9px;
  padding: 13px 14px;
  border: 1px solid var(--prd-line);
  border-radius: 11px;
  color: var(--prd-text);
  background: var(--prd-panel);
  text-align: left;
  cursor: pointer;
}

.prd-card:hover,
.prd-card.is-active {
  border-color: #aaa0f5;
  background: #fbfaff;
}

.prd-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.prd-card-index {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 7px;
  color: #fff;
  background: var(--prd-accent);
  font-size: 11px;
  font-weight: 800;
}

.prd-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.prd-section-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.prd-section-nav button {
  height: 31px;
  border: 1px solid #e2dfe6;
  border-radius: 8px;
  color: #56515d;
  background: #fff;
  cursor: pointer;
  font: 600 11px/1 inherit;
}

.prd-section-nav button:hover {
  color: #6657e8;
  border-color: #b9b1f5;
}

.prd-overview {
  margin-bottom: 20px;
  padding: 17px;
  border: 1px solid #ded9ff;
  border-radius: 13px;
  background: linear-gradient(145deg, #fbfaff, #f5f2ff);
}

.prd-overview-kicker {
  color: #6657e8;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
}

.prd-overview h3 {
  margin: 5px 0 8px;
  color: #26222c;
  font-size: 16px;
}

.prd-overview > p {
  margin: 0;
  color: #5d5764;
  font-size: 12px;
  line-height: 1.75;
}

.prd-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.prd-overview-grid > div,
.prd-global-rules {
  padding: 12px;
  border: 1px solid #e7e3f4;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.74);
}

.prd-overview-grid strong,
.prd-global-rules > strong {
  color: #37323d;
  font-size: 11px;
}

.prd-overview ul,
.prd-overview ol,
.prd-case-list {
  margin: 8px 0 0;
  padding-left: 17px;
  color: #625c69;
  font-size: 11px;
  line-height: 1.75;
}

.prd-global-rules {
  margin-top: 9px;
}

.prd-group {
  scroll-margin-top: 12px;
  margin-bottom: 24px;
}

.prd-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  padding: 0 2px;
}

.prd-group > header div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.prd-group > header span {
  color: #26232b;
  font-size: 15px;
  font-weight: 750;
}

.prd-group > header small,
.prd-group > header em {
  color: #8b8591;
  font-size: 10px;
  font-style: normal;
}

.prd-card {
  cursor: default;
}

.prd-card-head {
  align-items: flex-start;
}

.prd-card-head > div {
  min-width: 0;
  flex: 1;
}

.prd-card-head > div p {
  margin: 4px 0 0;
  color: #69636f;
  font-size: 11px;
  line-height: 1.55;
}

.prd-requirement-id {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 2px 6px;
  border-radius: 5px;
  color: #5c4fd2;
  background: #f0edff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 750;
}

.prd-event-convention {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #dcd7ff;
  border-radius: 13px;
  background: #f8f6ff;
}

.prd-event-convention > span {
  color: #6657e8;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
}

.prd-event-convention h3 {
  margin: 5px 0 8px;
  color: #29252f;
  font-size: 15px;
}

.prd-event-convention ul {
  margin: 0;
  padding-left: 18px;
  color: #625c69;
  font-size: 11px;
  line-height: 1.8;
}

.prd-event-convention code,
.prd-page-event code {
  color: #5c4fd2;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.prd-page-event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid #e3def8;
  border-radius: 9px;
  background: #fff;
}

.prd-page-event strong {
  color: #4b4651;
  font-size: 10px;
}

.prd-page-event code {
  font-size: 10px;
}

.prd-page-event p {
  grid-column: 1 / -1;
  margin: 0;
  color: #6d6773;
  font-size: 10px;
  line-height: 1.6;
}

.prd-track-map {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  gap: 5px 8px;
  margin: 11px 0 0 31px;
  padding: 9px;
  border-radius: 8px;
  background: #f7f6f8;
}

.prd-track-map span {
  color: #8a8490;
  font-size: 10px;
}

.prd-track-map code {
  color: #5d5269;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.prd-param-block {
  overflow: hidden;
}

.prd-param-table {
  border: 1px solid #e7e4e9;
  border-radius: 8px;
  overflow: hidden;
}

.prd-param-table > div {
  display: grid;
  grid-template-columns: minmax(90px, 1.25fr) 70px 38px minmax(120px, 1.5fr);
  border-top: 1px solid #eeebf0;
  background: #fff;
}

.prd-param-table > div:first-child {
  border-top: 0;
}

.prd-param-table > div > * {
  min-width: 0;
  margin: 0;
  padding: 7px 6px;
  border-left: 1px solid #eeebf0;
  color: #5d5763;
  font-size: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.prd-param-table > div > *:first-child {
  border-left: 0;
}

.prd-param-table .is-head {
  background: #f5f3f7;
}

.prd-param-table .is-head span {
  color: #6d6674;
  font-weight: 700;
}

.prd-param-table code {
  color: #5c4fd2;
  background: transparent;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.prd-param-table p small {
  display: block;
  margin-top: 2px;
  color: #98929d;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.prd-card-locate {
  flex: 0 0 auto;
  height: 27px;
  padding: 0 9px;
  border: 1px solid #d8d4de;
  border-radius: 7px;
  color: #6657e8;
  background: #fff;
  cursor: pointer;
  font: 600 10px/1 inherit;
}

.prd-card-locate:hover {
  border-color: #aaa0f5;
  background: #f7f5ff;
}

.prd-case-list {
  margin-top: 0;
  color: #4d4853;
}

.prd-card-desc {
  margin: 9px 0 0 31px;
  color: #625d69;
  font-size: 12px;
  line-height: 1.65;
}

.prd-detail-block {
  margin: 10px 0 0 31px;
  padding-top: 9px;
  border-top: 1px solid #ece9ef;
}

.prd-detail-block strong {
  display: block;
  margin-bottom: 5px;
  color: #77717f;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.prd-detail-block p,
.prd-detail-block code {
  margin: 0;
  color: #4d4853;
  font-size: 11px;
  line-height: 1.65;
}

.prd-detail-block code {
  display: block;
  padding: 7px 9px;
  border-radius: 7px;
  color: #5c4fd2;
  background: #f4f2ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
}

.prd-marker {
  position: fixed;
  z-index: 2147483003;
  display: none;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--prd-accent);
  box-shadow: 0 4px 14px rgba(46, 31, 126, 0.5);
  cursor: pointer;
  font: 800 11px/1 inherit;
}

#prd-review-root.is-annotating .prd-marker.is-visible {
  display: grid;
}

#prd-review-root .prd-marker.is-selected.is-visible {
  display: grid;
}

.prd-target-highlight {
  outline: 2px solid var(--prd-accent) !important;
  outline-offset: 4px !important;
  animation: prd-highlight-pulse 1.2s ease 2;
}

@keyframes prd-highlight-pulse {
  50% { outline-color: rgba(121, 103, 255, 0.25); }
}

@media (max-width: 700px) {
  .prd-launcher { right: 10px; top: 10px; }
  .prd-drawer { width: min(390px, 100vw); }
  .prd-toolbar-row { align-items: stretch; flex-direction: column; }
  .prd-annotation-toggle { width: 100%; }
  .prd-overview-grid { grid-template-columns: 1fr; }
}
