@import url("https://fonts.googleapis.com/css2?family=Creepster&display=swap");

* {
  box-sizing: border-box;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

:root {
  --pd-bg: #07090a;
  --pd-bg-2: #0d1011;
  --pd-panel: #111517;
  --pd-panel-2: #171d20;
  --pd-panel-3: #1d2427;
  --pd-line: rgba(235, 232, 220, 0.13);
  --pd-line-strong: rgba(235, 232, 220, 0.22);
  --pd-text: #f4efe5;
  --pd-muted: #aaa9a2;
  --pd-soft: #d7cbb1;
  --pd-green: #6be7a7;
  --pd-teal: #73d6d0;
  --pd-amber: #e4b85d;
  --pd-red: #e36f67;
  --pd-blue: #7fb2e6;
  --pd-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

html {
  min-height: 100%;
  background: var(--pd-bg);
}

html.pd-modal-locked,
body.pd-modal-locked {
  overflow: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--pd-text);
  background: linear-gradient(180deg, #0b0e0f 0%, #07090a 34%, #090b0c 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.pd-shell {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-columns: 15.4rem minmax(0, 1fr);
}

.pd-shell.is-library-tab {
  grid-template-columns: minmax(0, 1fr);
}

.pd-shell.is-library-tab .pd-rail,
.pd-shell.is-library-tab .pd-quick-actions,
.pd-shell.is-library-tab .pd-mobile-tabs {
  display: none;
}

.pd-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.72rem;
  border-right: 1px solid var(--pd-line);
  background: rgba(8, 11, 12, 0.97);
  backdrop-filter: blur(16px);
  z-index: 20;
}

.pd-rail.pd-investigation {
  top: 0;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.pd-guide {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
  z-index: 60;
}

.pd-shell.is-guide-open .pd-guide {
  display: grid;
}

.pd-map-preview {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
  z-index: 58;
}

.pd-shell.is-map-preview-open .pd-map-preview {
  display: grid;
}

.pd-library-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(5px);
  z-index: 70;
}

.pd-shell.is-library-modal-open .pd-library-modal {
  display: grid;
}

.pd-editor-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  z-index: 76;
}

.pd-shell.is-editor-open .pd-editor-modal {
  display: grid;
}

.pd-case-intel {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(5px);
  z-index: 68;
}

.pd-action-journal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(5px);
  z-index: 69;
}

.pd-shell.is-case-intel-open .pd-case-intel {
  display: grid;
}

.pd-shell.is-action-journal-open .pd-action-journal {
  display: grid;
}

.pd-case-intel-card,
.pd-action-journal-card {
  width: min(94vw, 48rem);
  max-height: 88vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  background: rgba(9, 13, 14, 0.98);
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.62);
  overflow: hidden;
}

.pd-action-journal-card {
  width: min(94vw, 34rem);
}

.pd-case-intel-card header,
.pd-action-journal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.82rem;
  border-bottom: 1px solid var(--pd-line);
  background: rgba(255, 255, 255, 0.035);
}

.pd-case-intel-card h2,
.pd-action-journal-card h2 {
  margin: 0;
  color: #fff7ed;
  font-family: Creepster, fantasy;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pd-case-intel-card header button,
.pd-action-journal-card header button {
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-text);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.pd-case-intel-body,
.pd-action-journal-body {
  min-height: 0;
  display: grid;
  gap: 0.62rem;
  padding: 0.72rem;
  overflow-y: auto;
}

.pd-case-intel-block {
  display: grid;
  gap: 0.48rem;
  padding: 0.62rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pd-case-intel-block.is-warning {
  border-color: rgba(227, 111, 103, 0.34);
  background: rgba(227, 111, 103, 0.08);
}

.pd-case-intel-block.is-ok {
  border-color: rgba(107, 231, 167, 0.22);
}

.pd-case-intel-block h3 {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0;
  color: var(--pd-amber);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pd-case-intel-block ul,
.pd-case-intel-block ol {
  display: grid;
  gap: 0.36rem;
  margin: 0;
  padding-left: 1.05rem;
}

.pd-case-intel-block li {
  color: var(--pd-text);
  font-size: 0.82rem;
  line-height: 1.36;
}

.pd-case-intel-block ol {
  padding-left: 0;
  list-style: none;
}

.pd-case-intel-block ol li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.5rem;
  padding: 0.42rem 0.5rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.pd-case-intel-block ol strong {
  min-width: 0;
  overflow: hidden;
  color: #fff7ed;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-case-intel-block ol span {
  font-weight: 900;
}

.pd-case-intel-block ol em {
  grid-column: 1 / -1;
  color: var(--pd-muted);
  font-size: 0.72rem;
  font-style: normal;
}

.pd-action-log {
  padding-left: 0;
  list-style: none;
}

.pd-action-log li {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  padding: 0.36rem 0.44rem;
  border: 1px solid rgba(235, 232, 220, 0.09);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.16);
}

.pd-action-log time {
  color: var(--pd-amber);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.pd-action-log span {
  min-width: 0;
  color: var(--pd-text);
}

.pd-library-modal-card {
  position: relative;
  width: min(94vw, 64rem);
  max-height: 90vh;
  padding: 0.7rem;
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  background: rgba(9, 13, 14, 0.98);
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.62);
}

.pd-library-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-text);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.pd-library-modal-body {
  max-height: calc(90vh - 1.4rem);
  overflow-y: auto;
  scrollbar-width: none;
}

.pd-library-modal-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.pd-editor-card {
  width: min(96vw, 78rem);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--pd-line-strong);
  border-radius: 8px;
  color: var(--pd-text);
  background: rgba(9, 13, 14, 0.98);
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.62);
}

.pd-editor-card > header,
.pd-editor-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pd-editor-card h2 {
  margin: 0;
  font-size: 1.08rem;
}

.pd-editor-card > header button,
.pd-editor-card > footer button,
.pd-editor-open {
  min-height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.7rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-weight: 850;
}

.pd-editor-card > header button {
  width: 2.25rem;
  padding: 0;
}

.pd-editor-card > footer button {
  color: #03110b;
  border-color: rgba(107, 231, 167, 0.8);
  background: var(--pd-green);
}

.pd-editor-card > footer button span,
.pd-editor-card > footer button i {
  color: #03110b;
}

.pd-editor-card > footer button:hover {
  border-color: rgba(178, 255, 214, 0.92);
  background: #8affc2;
}

.pd-editor-card > footer button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.pd-editor-upload {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto auto auto minmax(10rem, 1fr);
  align-items: end;
  gap: 0.55rem;
}

.pd-editor-upload button {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.65rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-weight: 850;
}

.pd-editor-upload button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.pd-editor-upload output {
  min-width: 0;
  align-self: center;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  overflow: hidden;
  color: var(--pd-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-editor-upload output img {
  width: 2.15rem;
  height: 2.15rem;
  object-fit: cover;
  border: 1px solid var(--pd-line);
  border-radius: 6px;
  background: #000;
}

.pd-editor-upload output span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-editor-json-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pd-editor-json-actions button {
  min-height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.65rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-weight: 850;
}

.pd-editor-json-actions button:hover {
  border-color: rgba(107, 231, 167, 0.42);
  background: rgba(107, 231, 167, 0.1);
}

.pd-editor-json-actions button.is-active {
  border-color: rgba(107, 231, 167, 0.55);
  color: var(--pd-green);
  background: rgba(107, 231, 167, 0.12);
}

.pd-editor-json-actions output {
  min-width: 0;
  overflow: hidden;
  color: var(--pd-green);
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-editor-json-actions output.is-error {
  color: #ff8d8d;
}

.pd-editor-reference {
  display: none;
  margin-top: 0.1rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pd-editor-reference.is-open {
  display: block;
}

.pd-editor-reference header {
  min-height: 2rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.18rem 0.65rem;
  color: var(--pd-muted);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1;
}

.pd-editor-reference header i {
  flex: 0 0 auto;
  color: var(--pd-amber);
}

.pd-editor-reference header span {
  min-width: 0;
}

.pd-editor-reference > div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0.65rem;
  padding: 0 0.65rem 0.65rem;
  max-height: 11rem;
  overflow-y: auto;
}

.pd-editor-reference section {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.pd-editor-reference h3 {
  margin: 0;
  color: var(--pd-text);
  font-size: 0.78rem;
}

.pd-editor-reference section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.pd-editor-reference button {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.8rem;
  padding: 0 0.48rem;
  border: 1px solid var(--pd-line);
  border-radius: 7px;
  color: var(--pd-muted);
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.pd-editor-reference button:hover {
  border-color: rgba(107, 231, 167, 0.42);
  color: var(--pd-text);
  background: rgba(107, 231, 167, 0.1);
}

.pd-editor-reference code {
  color: var(--pd-green);
  font-size: 0.72rem;
}

.pd-editor-file {
  position: relative;
}

.pd-editor-file input {
  position: absolute;
  inset: 1.15rem 0 0;
  opacity: 0;
  cursor: pointer;
}

.pd-editor-file b {
  min-width: 0;
  min-height: 2.35rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.65rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-text);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.84rem;
  font-weight: 850;
}

.pd-editor-file b i {
  color: var(--pd-green);
}

.pd-editor-file b span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-editor-file:hover b,
.pd-editor-file:focus-within b {
  border-color: rgba(107, 231, 167, 0.55);
  background: rgba(107, 231, 167, 0.1);
}

.pd-editor-toolbar {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  gap: 0.65rem;
}

.pd-editor-choice {
  position: relative;
}

.pd-editor-choice > button {
  width: 100%;
  min-height: 2.35rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.65rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-align: left;
}

.pd-editor-choice > button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-editor-choice > button i {
  color: var(--pd-muted);
  font-size: 0.72rem;
}

.pd-editor-choice-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 0.32rem);
  left: 0;
  right: 0;
  max-height: min(20rem, 46vh);
  display: none;
  overflow-y: auto;
  padding: 0.28rem;
  border: 1px solid var(--pd-line-strong);
  border-radius: 8px;
  background: #111719;
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.56);
}

.pd-editor-choice.is-open .pd-editor-choice-menu {
  display: grid;
  gap: 0.18rem;
}

.pd-editor-choice.is-open > button {
  border-color: rgba(107, 231, 167, 0.55);
  background: rgba(107, 231, 167, 0.1);
}

.pd-editor-choice-menu button {
  min-height: 2rem;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 6px;
  color: var(--pd-muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
}

.pd-editor-choice-menu button:hover,
.pd-editor-choice-menu button.is-selected {
  color: var(--pd-text);
  background: rgba(107, 231, 167, 0.13);
}

.pd-editor-card label {
  min-width: 0;
  display: grid;
  gap: 0.32rem;
  color: var(--pd-muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.pd-editor-card input,
.pd-editor-card select,
.pd-editor-card textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-text);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
}

.pd-editor-card input,
.pd-editor-card select {
  min-height: 2.35rem;
  padding: 0 0.65rem;
}

.pd-editor-card textarea {
  min-height: 6rem;
  padding: 0.62rem;
  resize: vertical;
  line-height: 1.45;
}

.pd-editor-card textarea.is-invalid {
  border-color: rgba(255, 92, 92, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 92, 92, 0.22);
}

.pd-editor-card [data-editor-html],
.pd-editor-card [data-editor-code] {
  min-height: 54vh;
  font-family: ui-monospace, SFMono-Regular, Consolas, Liberation Mono, monospace;
  font-size: 0.82rem;
}

.pd-editor-json-panel {
  min-height: 0;
  overflow: hidden;
}

.pd-editor-json-panel label {
  height: 100%;
}

.pd-editor-json-panel textarea {
  height: 100%;
  min-height: 54vh;
}

.pd-editor-tabs {
  display: flex;
  gap: 0.4rem;
}

.pd-editor-tabs button {
  min-height: 2.15rem;
  padding: 0 0.85rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 850;
}

.pd-editor-tabs button.is-active {
  color: var(--pd-green);
  border-color: rgba(107, 231, 167, 0.55);
  background: rgba(107, 231, 167, 0.12);
}

.pd-editor-panel {
  min-height: 0;
  display: none;
  overflow-y: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding-right: 0.2rem;
}

.pd-editor-panel.is-active {
  display: grid;
}

.pd-editor-wide {
  grid-column: 1 / -1;
}

.pd-editor-check {
  align-self: end;
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.65rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.pd-editor-check input {
  width: auto;
  min-height: auto;
}

.pd-editor-card footer span {
  min-width: 0;
  color: var(--pd-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.pd-editor-card footer span.is-error {
  color: #ff8d8d;
}

.pd-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  z-index: 80;
}

.pd-shell.is-lightbox-open .pd-lightbox {
  display: grid;
}

.pd-lightbox-card {
  position: relative;
  max-width: min(94vw, 72rem);
  max-height: 92vh;
  display: grid;
  place-items: center;
}

.pd-lightbox-card img {
  max-width: 100%;
  max-height: 92vh;
  display: block;
  border: 1px solid var(--pd-line-strong);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

.pd-lightbox-card button {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-text);
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.pd-lightbox-card button:hover {
  border-color: rgba(107, 231, 167, 0.42);
  background: rgba(107, 231, 167, 0.14);
}

.pd-map-preview-card {
  width: min(34rem, 94vw);
  display: grid;
  gap: 0.72rem;
  padding: 0.82rem;
  border: 1px solid var(--pd-line-strong);
  border-radius: 8px;
  background: rgba(10, 13, 14, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.pd-map-preview-card-wide {
  width: min(72rem, 96vw);
}

.pd-map-preview-card header,
.pd-map-preview-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.pd-map-preview-card h2 {
  margin: 0;
  color: var(--pd-text);
  font-size: 1.08rem;
}

.pd-map-preview-card header button,
.pd-map-preview-card footer button {
  min-height: 2rem;
  padding: 0 0.62rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
}

.pd-map-preview-card header button:hover,
.pd-map-preview-card footer button:hover {
  border-color: rgba(107, 231, 167, 0.42);
  color: var(--pd-text);
  background: rgba(107, 231, 167, 0.1);
}

.pd-map-preview-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, 5.2rem);
  gap: 0.42rem;
  padding: 0.42rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    rgba(15, 19, 21, 0.72);
  background-size: 33.33% 100%, 100% 33.33%, auto;
}

.pd-map-preview-stage button {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0.38rem;
  border: 1px solid rgba(235, 232, 220, 0.12);
  border-radius: 7px;
  color: var(--pd-muted);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.pd-map-preview-stage button.is-active {
  border-color: rgba(107, 231, 167, 0.72);
  color: var(--pd-green);
  background: rgba(107, 231, 167, 0.12);
}

.pd-map-preview-stage button i {
  position: absolute;
  top: 0.36rem;
  right: 0.42rem;
  color: var(--pd-green);
}

.pd-map-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.pd-map-variants button {
  min-height: 2rem;
  padding: 0 0.58rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 850;
}

.pd-map-variants button:hover,
.pd-map-variants button.is-active {
  border-color: rgba(107, 231, 167, 0.45);
  color: var(--pd-green);
  background: rgba(107, 231, 167, 0.1);
}

.pd-map-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.pd-map-controls button {
  min-width: 2.15rem;
  min-height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-soft);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 850;
}

.pd-map-controls button:hover {
  border-color: rgba(107, 231, 167, 0.42);
  color: var(--pd-text);
  background: rgba(107, 231, 167, 0.1);
}

.pd-map-image-wrap {
  position: relative;
  height: min(72vh, 48rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: #000;
  cursor: grab;
  touch-action: none;
}

.pd-map-image-wrap.is-dragging {
  cursor: grabbing;
}

.pd-map-image-frame {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: inline-block;
  transform-origin: center center;
  transition: transform 0.12s ease;
}

.pd-map-image-wrap img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, 48rem);
  display: block;
  user-select: none;
}

.pd-map-marker {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #f3efe7;
  font-size: 2rem;
  filter: drop-shadow(0 0 0.35rem rgba(0, 0, 0, 0.95)) drop-shadow(0 0 0.7rem rgba(107, 231, 167, 0.46));
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pd-map-ghost 1.45s ease-in-out infinite;
}

.pd-map-marker::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(107, 231, 167, 0.7);
  border-radius: 999px;
  background: rgba(107, 231, 167, 0.08);
  transform: translate(-50%, -50%);
  animation: pd-map-ring 1.45s ease-in-out infinite;
}

@keyframes pd-map-ghost {
  0%, 100% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -54%) scale(1.08);
  }
}

@keyframes pd-map-ring {
  0%, 100% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(0.86);
  }

  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.pd-guide-card {
  width: min(44rem, 94vw);
  max-height: min(42rem, 88vh);
  display: grid;
  gap: 0.72rem;
  overflow: auto;
  padding: 0.82rem;
  border: 1px solid var(--pd-line-strong);
  border-radius: 8px;
  background: rgba(10, 13, 14, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.pd-guide-actions {
  position: sticky;
  bottom: -0.82rem;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0 -0.82rem -0.82rem;
  padding: 0.7rem 0.82rem;
  border-top: 1px solid var(--pd-line);
  background: rgba(10, 13, 14, 0.98);
  backdrop-filter: blur(12px);
}

.pd-guide-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.pd-guide-card h2 {
  margin: 0.08rem 0 0;
  color: var(--pd-text);
  font-family: Creepster, fantasy;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.05;
}

.pd-guide-actions button,
.pd-guide-select {
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.pd-guide-actions button {
  min-height: 2.45rem;
  padding: 0 0.68rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pd-guide-actions button:hover,
.pd-guide-select:hover,
.pd-guide-select.is-active {
  border-color: rgba(107, 231, 167, 0.38);
  color: var(--pd-text);
  background: rgba(107, 231, 167, 0.1);
}

.pd-guide-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.pd-guide-sections section:first-child,
.pd-guide-sections section:nth-child(3) {
  grid-column: 1 / -1;
}

.pd-guide-sections section {
  display: grid;
  gap: 0.26rem;
  padding: 0.58rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(17, 21, 23, 0.88);
}

.pd-guide-sections h3,
.pd-guide-sections p {
  margin: 0;
}

.pd-guide-sections h3 {
  color: var(--pd-amber);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.pd-guide-sections p {
  color: var(--pd-text);
  font-size: 0.86rem;
  line-height: 1.38;
}

.pd-guide-select {
  min-height: 2.35rem;
  font-weight: 850;
}

.pd-guide-rich-list {
  display: grid;
  gap: 0.62rem;
}

.pd-guide-rich {
  display: grid;
  gap: 0.42rem;
  padding: 0.58rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(17, 21, 23, 0.88);
}

.pd-guide-rich h3,
.pd-guide-rich p,
.pd-guide-rich ul {
  margin: 0;
}

.pd-guide-rich h3 {
  color: var(--pd-amber);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.pd-guide-rich ul {
  display: grid;
  gap: 0.58rem;
  padding-left: 1rem;
}

.pd-guide-rich li {
  color: var(--pd-text);
  font-size: 0.86rem;
  line-height: 1.42;
}

.pd-guide-rich b {
  color: var(--pd-soft);
}

.pd-guide-rich i {
  color: var(--pd-muted);
}

.pd-guide-rich img {
  width: 100%;
  max-height: 18rem;
  object-fit: cover;
  margin-top: 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--pd-line);
  display: block;
}

.pd-guide-rich img[data-lightbox-image] {
  cursor: zoom-in;
}

.pd-brand {
  min-height: 3.25rem;
  display: grid;
  grid-template-columns: 2.35rem 1fr;
  align-items: center;
  gap: 0.7rem;
  color: var(--pd-text);
  text-decoration: none;
}

.pd-brand span {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(107, 231, 167, 0.34);
  border-radius: 8px;
  background: rgba(107, 231, 167, 0.1);
  color: var(--pd-green);
  font-weight: 900;
}

.pd-brand strong {
  min-width: 0;
  font-size: 0.98rem;
  letter-spacing: 0;
}

.pd-tabs {
  display: grid;
  gap: 0.4rem;
}

.pd-tab,
.pd-ghost-reset,
.pd-hub-link,
.pd-icon-btn,
.pd-mobile-tabs,
.pd-candidates footer button,
.pd-speed-grid button,
.pd-timer button {
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.pd-tab {
  min-height: 2.65rem;
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  align-items: center;
  gap: 0.62rem;
  padding: 0 0.72rem;
  color: var(--pd-muted);
  text-align: left;
}

.pd-tab i {
  color: var(--pd-soft);
}

.pd-tab:hover,
.pd-tab.is-active,
.pd-ghost-reset:hover,
.pd-hub-link:hover,
.pd-icon-btn:hover,
.pd-mobile-tabs:hover,
.pd-candidates footer button:hover,
.pd-speed-grid button:hover,
.pd-timer button:hover {
  border-color: rgba(107, 231, 167, 0.38);
  background: rgba(107, 231, 167, 0.1);
  color: var(--pd-text);
}

.pd-tab.is-active i {
  color: var(--pd-green);
}

.pd-kicker {
  display: block;
  color: var(--pd-amber);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pd-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
}

.pd-search input,
.pd-field select,
.pd-notes textarea {
  width: 100%;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  outline: none;
  color: var(--pd-text);
  background: rgba(0, 0, 0, 0.24);
}

.pd-main {
  min-width: 0;
  min-height: 100vh;
  padding: 0;
}

.pd-topbar {
  min-height: 4.25rem;
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(12rem, auto) minmax(18rem, 1fr);
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
  padding: 0.72rem;
  border: 1px solid var(--pd-line);
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(17, 21, 23, 0.9);
  box-shadow: var(--pd-shadow);
}

.pd-top-tabs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pd-top-tabs .pd-tab {
  width: 2.65rem;
  min-height: 2.65rem;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0;
}

.pd-top-tabs .pd-tab span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pd-top-tabs .pd-tab i {
  font-size: 1rem;
}

.pd-logo-lockup {
  min-width: 0;
  display: grid;
  justify-items: center;
  text-align: center;
}

.pd-logo-lockup span {
  color: var(--pd-amber);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pd-topbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.pd-topbar h1,
.pd-section-head h2,
.pd-library-head h2,
.pd-tool-head h2 {
  margin: 0.08rem 0 0;
  letter-spacing: 0;
  line-height: 1.05;
}

.pd-topbar h1 {
  font-family: Creepster, fantasy;
  font-size: clamp(1.75rem, 2.45vw, 2.55rem);
  font-weight: 400;
}

.pd-mobile-tabs {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.45rem;
  padding: 0 0.75rem;
}

.pd-quick-actions {
  display: grid;
  margin: 0 0 0.75rem;
  border: 1px solid var(--pd-line);
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(17, 21, 23, 0.82);
  box-shadow: var(--pd-shadow);
}

.pd-quick-map {
  min-height: 2.85rem;
  display: grid;
  grid-template-columns: auto 1px auto 1px minmax(8.5rem, auto) minmax(12rem, 1fr) auto auto auto 1px auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.55rem;
}

.pd-quick-map > button {
  position: relative;
  min-height: 2rem;
  border: 1px solid var(--pd-line);
  border-radius: 7px;
  color: var(--pd-muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.pd-quick-map > [data-timer-toggle],
.pd-ghost-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0 0.62rem;
  color: var(--pd-text);
  white-space: nowrap;
}

.pd-quick-map > [data-timer-reset] {
  width: 2.1rem;
  padding: 0;
}

.pd-quick-map > button:hover,
.pd-quick-map.is-running > [data-timer-toggle] {
  border-color: rgba(107, 231, 167, 0.42);
  color: var(--pd-text);
  background: rgba(107, 231, 167, 0.1);
}

.pd-quick-timer-copy {
  display: grid;
  gap: 0.06rem;
  min-width: 0;
}

.pd-quick-timer-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-quick-separator {
  width: 1px;
  height: 1.9rem;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.pd-quick-map strong {
  color: var(--pd-soft);
  font-size: 0.82rem;
  font-weight: 900;
}

.pd-quick-map span {
  color: var(--pd-muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.pd-quick-stats {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.pd-quick-stats span,
.pd-quick-stats button {
  position: relative;
  min-height: 1.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0 0.46rem;
  border: 1px solid var(--pd-line);
  border-radius: 7px;
  color: var(--pd-muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.72rem;
}

.pd-quick-stats button {
  cursor: pointer;
}

.pd-quick-stats .pd-icon-only {
  width: 1.9rem;
  justify-content: center;
  padding: 0;
}

.pd-quick-map [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.44rem);
  z-index: 40;
  width: max-content;
  max-width: min(16rem, calc(100vw - 1rem));
  padding: 0.38rem 0.48rem;
  border: 1px solid var(--pd-line-strong);
  border-radius: 7px;
  color: var(--pd-text);
  background: rgba(8, 11, 12, 0.98);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.42);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.22;
  text-align: center;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.18rem);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.pd-quick-map [data-tooltip-align="end"]::after {
  left: auto;
  right: 0;
  transform: translate(0, 0.18rem);
}

.pd-quick-map [data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.16rem);
  z-index: 41;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1px solid var(--pd-line-strong);
  border-bottom: 1px solid var(--pd-line-strong);
  background: rgba(8, 11, 12, 0.98);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.18rem) rotate(45deg);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.pd-quick-map [data-tooltip-align="end"]::before {
  left: auto;
  right: 0.9rem;
  transform: translate(0, 0.18rem) rotate(45deg);
}

.pd-quick-map [data-tooltip]:hover::after,
.pd-quick-map [data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pd-quick-map [data-tooltip-align="end"]:hover::after,
.pd-quick-map [data-tooltip-align="end"]:focus-visible::after {
  transform: translate(0, 0);
}

.pd-quick-map [data-tooltip]:hover::before,
.pd-quick-map [data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

.pd-quick-map [data-tooltip-align="end"]:hover::before,
.pd-quick-map [data-tooltip-align="end"]:focus-visible::before {
  transform: translate(0, 0) rotate(45deg);
}

.pd-topbar [data-tooltip]::after,
.pd-hub-link[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.42rem);
  z-index: 45;
  width: max-content;
  max-width: min(14rem, calc(100vw - 1rem));
  padding: 0.35rem 0.46rem;
  border: 1px solid var(--pd-line-strong);
  border-radius: 7px;
  color: var(--pd-text);
  background: rgba(8, 11, 12, 0.98);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.42);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.16rem);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.pd-topbar [data-tooltip]::before,
.pd-hub-link[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.16rem);
  z-index: 46;
  width: 0.48rem;
  height: 0.48rem;
  border-right: 1px solid var(--pd-line-strong);
  border-bottom: 1px solid var(--pd-line-strong);
  background: rgba(8, 11, 12, 0.98);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.16rem) rotate(45deg);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.pd-topbar [data-tooltip]:hover::after,
.pd-topbar [data-tooltip]:focus-visible::after,
.pd-hub-link[data-tooltip]:hover::after,
.pd-hub-link[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pd-topbar [data-tooltip]:hover::before,
.pd-topbar [data-tooltip]:focus-visible::before,
.pd-hub-link[data-tooltip]:hover::before,
.pd-hub-link[data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

.pd-topbar [data-tooltip]::after {
  top: calc(100% + 0.42rem);
  bottom: auto;
}

.pd-topbar [data-tooltip]::before {
  top: calc(100% + 0.16rem);
  bottom: auto;
  border: 0;
  border-left: 1px solid var(--pd-line-strong);
  border-top: 1px solid var(--pd-line-strong);
}

.pd-quick-stats button:hover {
  border-color: rgba(127, 178, 230, 0.42);
  color: var(--pd-text);
  background: rgba(127, 178, 230, 0.09);
}

.pd-quick-stats i {
  color: var(--pd-soft);
  font-size: 0.78rem;
}

.pd-quick-stats b {
  min-width: 0;
  color: var(--pd-text);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pd-quick-stats [data-behavior-tone="none"] i,
.pd-quick-stats [data-behavior-tone="none"] b,
.pd-sidebar-title[data-behavior-tone="none"] em {
  color: var(--pd-text);
}

.pd-quick-stats [data-behavior-tone="one"] i,
.pd-quick-stats [data-behavior-tone="one"] b,
.pd-sidebar-title[data-behavior-tone="one"] em {
  color: #ffd45f;
}

.pd-quick-stats [data-behavior-tone="two"] i,
.pd-quick-stats [data-behavior-tone="two"] b,
.pd-sidebar-title[data-behavior-tone="two"] em {
  color: #ff5b4f;
}

.pd-quick-stats [data-behavior-tone="many"] i,
.pd-quick-stats [data-behavior-tone="many"] b,
.pd-sidebar-title[data-behavior-tone="many"] em {
  color: #b90f1f;
}

.pd-quick-stats [data-behavior-tone] {
  border-color: color-mix(in srgb, currentColor 24%, var(--pd-line));
}

[data-confidence-tone="strong"] {
  color: var(--pd-green);
}

[data-confidence-tone="good"] {
  color: var(--pd-blue);
}

[data-confidence-tone="warn"] {
  color: var(--pd-amber);
}

[data-confidence-tone="low"] {
  color: var(--pd-muted);
}

[data-confidence-tone="danger"] {
  color: var(--pd-red);
}

.pd-quick-stats [data-confidence-tone] i,
.pd-quick-stats [data-confidence-tone] b {
  color: currentColor;
}

.pd-quick-map output {
  color: color-mix(in srgb, var(--pd-text) 88%, var(--pd-setup-front, var(--pd-green)));
  text-shadow: 0 0 0.72rem color-mix(in srgb, var(--pd-setup-front, var(--pd-green)) 54%, transparent), 0 0.06rem 0.1rem rgba(0, 0, 0, 0.72);
  font-size: 1.04rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.pd-quick-track {
  height: 0.44rem;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: var(--pd-setup-track, rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.pd-quick-track canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  opacity: 0.82;
  pointer-events: none;
}

.pd-quick-track span {
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pd-setup-front, var(--pd-green)), var(--pd-setup-edge, var(--pd-amber)));
  overflow: hidden;
  opacity: 1;
  transition: width 260ms linear, background 180ms ease, opacity 180ms ease;
}

.pd-quick-track span::after {
  content: "";
  position: absolute;
  inset: -80% -18%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 45%, rgba(255, 255, 255, 0.32), transparent 18%),
    radial-gradient(circle at 58% 50%, rgba(255, 255, 255, 0.18), transparent 16%),
    radial-gradient(circle at 82% 42%, rgba(0, 0, 0, 0.2), transparent 20%),
    linear-gradient(100deg, transparent 8%, rgba(255, 255, 255, 0.2) 34%, transparent 60%);
  background-size: 7.5rem 100%, 9rem 100%, 6.5rem 100%, 11rem 100%;
  opacity: 0.38;
  mix-blend-mode: screen;
  animation: pd-timer-fluid 2.8s linear infinite;
}

.pd-quick-track.is-setup-complete span::after,
.pd-quick-track.is-setup-none span::after {
  background:
    radial-gradient(circle at 20% 45%, rgba(255, 70, 70, 0.34), transparent 18%),
    radial-gradient(circle at 56% 50%, rgba(255, 180, 120, 0.16), transparent 14%),
    radial-gradient(circle at 82% 42%, rgba(0, 0, 0, 0.48), transparent 22%),
    linear-gradient(100deg, transparent 8%, rgba(255, 50, 50, 0.2) 34%, transparent 60%);
  opacity: 0.52;
  mix-blend-mode: screen;
  animation-duration: 2.1s;
}

@keyframes pd-timer-fluid {
  0% {
    transform: translateX(-4%) skewX(-12deg);
  }

  100% {
    transform: translateX(18%) skewX(-12deg);
  }
}

.pd-quick-track.is-setup-complete {
  background: var(--pd-setup-track, rgba(35, 7, 11, 0.52));
  box-shadow: inset 0 0 0 1px rgba(141, 17, 29, 0.32), 0 0 1.1rem rgba(141, 17, 29, 0.16);
}

.pd-quick-track.is-setup-complete span {
  background: linear-gradient(90deg, var(--pd-setup-front, #8d111d), var(--pd-setup-edge, #23070b));
}

.pd-quick-track.is-setup-none span {
  background: linear-gradient(90deg, #8d111d, #23070b);
}

.pd-quick-track.is-setup-grace span {
  background: linear-gradient(90deg, var(--pd-setup-front, var(--pd-green)), var(--pd-setup-edge, var(--pd-amber)));
}

.pd-quick-map > [data-timer-toggle] {
  border-color: rgba(107, 231, 167, 0.42);
  border-color: color-mix(in srgb, var(--pd-setup-front, var(--pd-green)) 48%, var(--pd-line));
  color: var(--pd-text);
  background: rgba(107, 231, 167, 0.1);
  background: color-mix(in srgb, var(--pd-setup-front, var(--pd-green)) 13%, rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pd-setup-front, var(--pd-green)) 10%, transparent);
}

.pd-quick-map > [data-timer-toggle] i {
  color: color-mix(in srgb, var(--pd-text) 82%, var(--pd-setup-front, var(--pd-green)));
  text-shadow: 0 0 0.5rem color-mix(in srgb, var(--pd-setup-front, var(--pd-green)) 52%, transparent);
}

.pd-quick-map.is-running > [data-timer-toggle] {
  border-color: color-mix(in srgb, var(--pd-setup-front, var(--pd-green)) 48%, var(--pd-line));
  color: var(--pd-text);
  background: color-mix(in srgb, var(--pd-setup-front, var(--pd-green)) 13%, rgba(255, 255, 255, 0.035));
}

.pd-quick-map > [data-timer-toggle].is-locked {
  cursor: default;
  opacity: 1;
}

.pd-header-sync {
  min-height: 2.18rem;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
  padding: 0.24rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.pd-header-sync button {
  min-height: 1.78rem;
  width: 1.9rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: 1px solid var(--pd-line);
  border-radius: 7px;
  color: var(--pd-muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.pd-header-sync [data-sync-create] {
  color: var(--pd-text);
  background: rgba(255, 255, 255, 0.045);
}

.pd-header-sync button:hover,
.pd-header-sync.is-active button:first-child {
  border-color: rgba(107, 231, 167, 0.42);
  color: var(--pd-text);
  background: rgba(107, 231, 167, 0.1);
}

.pd-header-sync.is-active {
  border-color: rgba(107, 231, 167, 0.32);
}

.pd-header-sync.is-active [data-sync-create] {
  display: none;
}

.pd-header-sync:not(.is-active) [data-sync-leave] {
  display: none;
}

.pd-header-sync small {
  width: 0.62rem;
  height: 0.62rem;
  flex: 0 0 auto;
  display: block;
  overflow: visible;
  padding: 0;
  border-radius: 999px;
  background: #e36f67;
  box-shadow: 0 0 0 3px rgba(227, 111, 103, 0.12), 0 0 12px rgba(227, 111, 103, 0.42);
}

.pd-header-sync small::before {
  content: "";
  display: none;
}

.pd-header-sync.is-active small {
  background: var(--pd-green);
  animation: pd-sync-pulse 1.25s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(107, 231, 167, 0.12), 0 0 14px rgba(107, 231, 167, 0.56);
}

.pd-header-sync small.is-error {
  background: #e36f67;
  animation: none;
  box-shadow: 0 0 0 3px rgba(227, 111, 103, 0.12), 0 0 12px rgba(227, 111, 103, 0.42);
}

@keyframes pd-sync-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.78;
  }

  50% {
    transform: scale(1.22);
    opacity: 1;
  }
}

.pd-ghost-reset,
.pd-hub-link {
  min-height: 2.18rem;
  display: flex;
  align-items: center;
  gap: 0.46rem;
  padding: 0 0.68rem;
  text-decoration: none;
}

.pd-ghost-reset {
  color: var(--pd-text);
  background: rgba(228, 184, 93, 0.08);
}

.pd-ghost-reset i {
  color: var(--pd-amber);
}

.pd-hub-link {
  color: var(--pd-soft);
  background: linear-gradient(135deg, rgba(107, 231, 167, 0.09), rgba(127, 178, 230, 0.07));
}

.pd-hub-link i {
  color: var(--pd-green);
}

.pd-hub-link:hover i {
  color: var(--pd-text);
}

.pd-hub-link-header {
  justify-self: end;
}

.pd-panel {
  display: none;
}

.pd-panel.is-active {
  display: block;
  padding: 0 0.75rem 0.75rem;
}

.pd-hunt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.pd-investigation,
.pd-results,
.pd-library-head,
.pd-tool-card {
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(17, 21, 23, 0.88);
  box-shadow: var(--pd-shadow);
}

.pd-investigation,
.pd-results,
.pd-tool-card {
  padding: 0.75rem;
}

.pd-investigation {
  position: sticky;
  top: 0.75rem;
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
}

.pd-rail.pd-investigation {
  top: 0;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.pd-results,
.pd-tools {
  min-width: 0;
}

.pd-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  position: static;
}

.pd-case-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 0 0 auto;
  margin: 0;
  border-bottom: 1px solid var(--pd-line-strong);
}

.pd-case-tabs button {
  min-height: 2.28rem;
  border: 0;
  border-right: 1px solid var(--pd-line);
  color: var(--pd-muted);
  background: rgba(15, 19, 20, 0.72);
  cursor: pointer;
  font-size: 0.92rem;
}

.pd-case-tabs button:last-child {
  border-right: 0;
}

.pd-case-tabs button.is-active {
  color: var(--pd-text);
  background: rgba(18, 34, 25, 0.9);
  box-shadow: inset 0 2px 0 rgba(107, 231, 167, 0.75);
}

.pd-case-panel {
  display: none;
}

.pd-case-panel.is-active {
  min-height: 0;
  display: grid;
  gap: 0.48rem;
  padding: 0.72rem;
  overflow: auto;
}

.pd-case-panel .pd-tool-card {
  padding: 0.48rem;
  box-shadow: none;
}

.pd-timer-settings {
  display: grid;
  gap: 0.4rem;
  padding: 0 0.05rem 0.2rem;
}

.pd-timer-settings .pd-map-select {
  margin-top: 0;
}

.pd-timer-title {
  margin-bottom: 0.42rem;
}

.pd-case-panel .pd-tool-head {
  margin-bottom: 0.38rem;
}

.pd-section-head,
.pd-library-head,
.pd-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pd-investigation .pd-section-head {
  align-items: stretch;
  flex-direction: column;
  gap: 0.42rem;
}

.pd-investigation .pd-section-head h2 {
  font-size: 1.08rem;
}

.pd-section-head-tight {
  margin-top: 0.75rem;
}

.pd-field {
  display: grid;
  gap: 0.22rem;
  min-width: 11.5rem;
}

.pd-map-select {
  margin-top: 0.34rem;
}

.pd-investigation .pd-field {
  min-width: 0;
}

.pd-sidebar-title {
  display: block;
  margin: 0;
  color: var(--pd-text);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.15;
}

.pd-sidebar-title em {
  color: var(--pd-amber);
  font-style: normal;
}

.pd-sidebar-title-gap {
  margin-top: 0.52rem;
}

.pd-field > span:not(.pd-sidebar-title),
.pd-notes span {
  color: var(--pd-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.pd-field select {
  height: 2.38rem;
  padding: 0 0.65rem;
}

.pd-select {
  position: relative;
  z-index: 4;
}

.pd-map-select {
  z-index: 3;
}

.pd-select-button {
  width: 100%;
  min-height: 2.24rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.62rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-text);
  background: rgba(0, 0, 0, 0.24);
  cursor: pointer;
  text-align: left;
}

.pd-select-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-select-button i {
  color: var(--pd-muted);
  font-size: 0.72rem;
  transition: transform 0.16s ease;
}

.pd-map-preview-btn {
  min-height: 1.96rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 0 0.6rem;
  color: var(--pd-soft);
  font-size: 0.78rem;
  cursor: pointer;
}

.pd-map-preview-btn:hover {
  border-color: rgba(228, 184, 93, 0.42);
  color: var(--pd-text);
  background: rgba(228, 184, 93, 0.08);
}

.pd-map-preview-btn.is-disabled,
.pd-map-preview-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pd-select.is-open .pd-select-button {
  border-color: rgba(228, 184, 93, 0.5);
  background: rgba(228, 184, 93, 0.08);
}

.pd-select.is-open .pd-select-button i {
  transform: rotate(180deg);
}

.pd-select-menu {
  position: absolute;
  top: calc(100% + 0.28rem);
  left: 0;
  right: 0;
  max-height: 16rem;
  display: none;
  overflow: auto;
  padding: 0.28rem;
  border: 1px solid var(--pd-line-strong);
  border-radius: 8px;
  background: rgba(13, 16, 17, 0.98);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.pd-select.is-open .pd-select-menu {
  display: grid;
  gap: 0.18rem;
}

.pd-select-menu button {
  min-height: 2rem;
  border: 0;
  border-radius: 6px;
  color: var(--pd-muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  padding: 0 0.55rem;
}

.pd-select-menu button:hover,
.pd-select-menu button.is-selected {
  color: var(--pd-text);
  background: rgba(107, 231, 167, 0.1);
}

.pd-select-menu button.is-selected {
  color: var(--pd-green);
}

.pd-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.32rem;
}

.pd-evidence {
  --ev-color: var(--pd-muted);
  --ev-bg: rgba(255, 255, 255, 0.035);
  min-height: 2.72rem;
  display: grid;
  place-items: center;
  align-items: center;
  padding: 0.34rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  cursor: pointer;
}

.pd-evidence i {
  width: 1.92rem;
  height: 1.92rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--pd-muted);
}

.ev-emf {
  --ev-color: #e36f67;
}

.ev-dots {
  --ev-color: #39df5f;
}

.ev-freezing {
  --ev-color: #8ee8ff;
}

.ev-orb {
  --ev-color: #d7cf7a;
}

.ev-writing {
  --ev-color: #6ca8ff;
}

.ev-spirit {
  --ev-color: #d38a57;
}

.ev-uv {
  --ev-color: #aa83ff;
}

.pd-evidence span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pd-evidence.is-found {
  border-color: color-mix(in srgb, var(--ev-color) 48%, transparent);
  background: color-mix(in srgb, var(--ev-color) 12%, rgba(255, 255, 255, 0.02));
}

.pd-evidence.is-found i {
  color: var(--ev-color);
  background: color-mix(in srgb, var(--ev-color) 20%, rgba(255, 255, 255, 0.04));
}

.pd-evidence.is-excluded {
  border-color: rgba(170, 169, 162, 0.22);
  background: rgba(255, 255, 255, 0.018);
  opacity: 0.62;
  text-decoration: line-through;
}

.pd-evidence.is-excluded i {
  color: rgba(170, 169, 162, 0.68);
  background: rgba(255, 255, 255, 0.045);
}

.pd-evidence.is-locked,
.pd-behavior.is-locked,
.pd-speed-grid button.is-locked {
  cursor: not-allowed;
  filter: grayscale(0.85);
  opacity: 0.38;
  text-decoration: line-through;
}

.pd-evidence.is-locked {
  border-style: dashed;
}

.pd-behavior.is-locked {
  border-style: dashed;
}

.pd-evidence.is-locked i,
.pd-behavior.is-locked i,
.pd-behavior.is-locked span,
.pd-speed-grid button.is-locked i,
.pd-speed-grid button.is-locked span {
  color: rgba(170, 169, 162, 0.66);
}

.pd-behavior-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.28rem;
  margin-top: 0.42rem;
}

.pd-behavior {
  min-height: 1.96rem;
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr) 1.35rem;
  align-items: center;
  gap: 0.34rem;
  padding: 0.18rem 0.48rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  text-align: center;
}

.pd-behavior i {
  justify-self: center;
}

.pd-behavior span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.72rem;
  line-height: 1.16;
}

.pd-behavior.is-active {
  border-color: rgba(127, 178, 230, 0.5);
  color: var(--pd-text);
  background: rgba(127, 178, 230, 0.12);
}

.pd-behavior.is-suggested {
  border-color: rgba(245, 205, 107, 0.42);
  color: var(--pd-text);
  background: rgba(245, 205, 107, 0.08);
  box-shadow: inset 0 0 0 1px rgba(245, 205, 107, 0.08);
}

.pd-behavior.is-suggested i {
  color: var(--pd-amber);
}

.pd-notes {
  display: grid;
  gap: 0.45rem;
}

.pd-notes textarea {
  min-height: 8.4rem;
  resize: vertical;
  padding: 0.68rem;
  line-height: 1.42;
}

.pd-candidates,
.pd-library-grid,
.pd-map-grid {
  display: grid;
  gap: 0.62rem;
}

.pd-candidates {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

[data-ghost-library].pd-library-grid,
[data-cursed-library].pd-library-grid {
  display: block;
  columns: 28rem;
  column-gap: 0.62rem;
}

.pd-ghost-card,
.pd-info-card,
.pd-map-card {
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.pd-ghost-card {
  min-width: 0;
  display: grid;
  gap: 0.58rem;
  padding: 0.68rem;
}

.pd-ghost-card-compact {
  position: relative;
  gap: 0;
  padding: 0;
  height: 7.85rem;
  min-height: 0;
  overflow: hidden;
  background: rgba(18, 22, 24, 0.9);
}

.pd-ghost-card-compact[data-match-tone]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, transparent, var(--pd-match-led), transparent, var(--pd-match-led), transparent);
  background-size: 220% 100%;
  opacity: 0;
  pointer-events: none;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: pd-card-led 3.6s linear infinite;
}

.pd-ghost-card-compact[data-match-tone="two"] {
  --pd-match-led: rgba(255, 91, 79, 0.82);
  border-color: rgba(255, 91, 79, 0.34);
  background: linear-gradient(135deg, rgba(255, 91, 79, 0.1), rgba(18, 22, 24, 0.9) 46%);
}

.pd-ghost-card-compact[data-match-tone="one"] {
  --pd-match-led: rgba(255, 212, 95, 0.76);
  border-color: rgba(255, 212, 95, 0.28);
  background: linear-gradient(135deg, rgba(255, 212, 95, 0.08), rgba(18, 22, 24, 0.9) 42%);
}

.pd-ghost-card-compact[data-match-tone="many"] {
  --pd-match-led: rgba(185, 15, 31, 0.9);
  border-color: rgba(185, 15, 31, 0.48);
  background: linear-gradient(135deg, rgba(185, 15, 31, 0.15), rgba(18, 22, 24, 0.9) 50%);
  box-shadow: inset 0 0 0 1px rgba(185, 15, 31, 0.12);
}

.pd-ghost-card-compact.is-selected[data-match-tone] {
  border-color: rgba(228, 184, 93, 0.72);
  background: rgba(18, 22, 24, 0.9);
  box-shadow: inset 0 0 0 1px rgba(228, 184, 93, 0.16);
}

.pd-ghost-card-compact.is-selected[data-match-tone="one"] {
  border-color: rgba(255, 212, 95, 0.48);
  background: linear-gradient(135deg, rgba(255, 212, 95, 0.08), rgba(18, 22, 24, 0.9) 42%);
}

.pd-ghost-card-compact.is-selected[data-match-tone="two"] {
  border-color: rgba(255, 91, 79, 0.52);
  background: linear-gradient(135deg, rgba(255, 91, 79, 0.1), rgba(18, 22, 24, 0.9) 46%);
}

.pd-ghost-card-compact.is-selected[data-match-tone="many"] {
  border-color: rgba(185, 15, 31, 0.62);
  background: linear-gradient(135deg, rgba(185, 15, 31, 0.15), rgba(18, 22, 24, 0.9) 50%);
}

.pd-ghost-card-compact.is-selected[data-match-tone]::before {
  --pd-match-led: rgba(228, 184, 93, 0.92);
  opacity: 1;
}

.pd-ghost-card.is-pinned {
  box-shadow: inset 0 0 0 1px rgba(245, 205, 107, 0.12);
}

.pd-ghost-card-compact.is-pinned:not(.is-selected) {
  border-color: rgba(245, 205, 107, 0.36);
}

@keyframes pd-card-led {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 220% 0;
  }
}

.pd-ghost-card-compact header {
  min-height: 2.08rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.3rem 0 0.42rem;
}

.pd-ghost-card-compact h3 {
  overflow: hidden;
  max-width: 100%;
  color: #fff7ed;
  font-family: Creepster, fantasy;
  font-size: 1.42rem;
  font-weight: 400;
  text-align: left;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pd-ghost-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.pd-ghost-check,
.pd-ghost-pin {
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--pd-line);
  border-radius: 7px;
  color: var(--pd-muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.pd-ghost-check:hover,
.pd-ghost-pin:hover {
  border-color: rgba(107, 231, 167, 0.4);
  color: var(--pd-text);
  background: rgba(107, 231, 167, 0.08);
}

.pd-ghost-check.is-checked {
  border-color: rgba(107, 231, 167, 0.55);
  color: var(--pd-green);
  background: rgba(107, 231, 167, 0.12);
}

.pd-ghost-pin.is-pinned {
  border-color: rgba(245, 205, 107, 0.58);
  color: var(--pd-amber);
  background: rgba(245, 205, 107, 0.13);
}

.pd-details-btn {
  min-height: 2rem;
  padding: 0 0.62rem;
  border: 1px solid rgba(245, 205, 107, 0.32);
  border-radius: 7px;
  color: var(--pd-amber);
  background: rgba(245, 205, 107, 0.07);
  font-size: 0.74rem;
  font-weight: 850;
  cursor: pointer;
}

.pd-details-btn:hover {
  border-color: rgba(245, 205, 107, 0.58);
  color: var(--pd-text);
  background: rgba(245, 205, 107, 0.12);
}

.pd-entity-lore {
  min-height: 0;
  display: grid;
  gap: 0.62rem;
}

.pd-entity-lore section {
  padding: 0.64rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(7, 10, 11, 0.42);
}

.pd-entity-lore h3 {
  margin: 0 0 0.42rem;
  color: var(--pd-amber);
  font-family: Creepster, fantasy;
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.pd-entity-lore blockquote {
  margin: 0;
}

.pd-entity-lore p {
  margin: 0;
  color: var(--pd-text);
  font-size: 0.86rem;
  line-height: 1.42;
}

.pd-entity-lore cite {
  display: block;
  margin-top: 0.42rem;
  color: var(--pd-muted);
  font-size: 0.78rem;
  font-style: normal;
}

.pd-entity-lore section p + p {
  margin-top: 0.5rem;
}

.pd-ghost-library-card {
  position: relative;
  height: auto;
  grid-template-rows: auto auto auto auto auto;
  overflow: visible;
  cursor: default;
  break-inside: avoid;
  margin: 0 0 0.62rem;
}

.pd-ghost-library-card .pd-chip-row {
  min-height: 1.56rem;
  align-content: start;
}

.pd-ghost-library-card .pd-chip {
  min-height: 1.38rem;
}

.pd-ghost-library-card .pd-stat-strip {
  min-height: 2.2rem;
}

.pd-ghost-library-card .pd-entity-lore {
  grid-row: 5;
  display: block;
  overflow: visible;
  padding-right: 0;
}

.pd-ghost-library-card .pd-entity-lore section {
  display: flow-root;
}

.pd-ghost-library-card .pd-entity-lore section + section {
  margin-top: 0.62rem;
}

.pd-ghost-library-card .pd-entity-lore p {
  font-size: 0.82rem;
  line-height: 1.38;
}

.pd-card-body {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(13.5rem, 0.92fr) minmax(12rem, 1fr);
  gap: 0.28rem;
  height: 100%;
  padding: 0.28rem;
}

.pd-card-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  grid-template-rows: auto auto 1fr;
  gap: 0.3rem;
}

.pd-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
}

.pd-mini-stats span {
  min-height: 2.02rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.1rem 0.28rem;
  overflow: hidden;
  padding: 0.26rem 0.34rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: var(--pd-text);
  background: rgba(17, 13, 25, 0.42);
  line-height: 1.08;
}

.pd-mini-stats span i {
  grid-row: 1 / 3;
  flex: 0 0 auto;
  color: var(--pd-muted);
}

.pd-mini-stats strong {
  color: var(--pd-muted);
  font-size: 0.58rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pd-mini-stats em {
  min-width: 0;
  overflow: hidden;
  color: var(--pd-soft);
  font-size: 0.66rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-stat-strip {
  min-height: 2.32rem;
  display: grid;
  grid-template-columns: minmax(4.35rem, auto) minmax(0, 1fr);
  align-items: center;
  gap: 0.26rem;
  padding: 0.22rem 0.34rem;
  border-radius: 6px;
  border: 1px solid rgba(107, 231, 167, 0.08);
  background: rgba(9, 12, 13, 0.86);
  color: var(--pd-text);
}

.pd-stat-sanity,
.pd-stat-speed,
.pd-stat-speed span {
  display: flex;
  align-items: center;
}

.pd-stat-sanity {
  gap: 0.32rem;
  padding-left: 0.16rem;
  border-radius: 5px;
}

.pd-stat-sanity > i {
  color: rgba(220, 220, 215, 0.72);
  font-size: 1.08rem;
}

.pd-stat-sanity.is-standard {
  background: rgba(228, 184, 93, 0.08);
}

.pd-stat-sanity.is-standard > i,
.pd-stat-sanity.is-standard span {
  color: #e4c36c;
}

.pd-stat-sanity.is-danger > i {
  color: #d8a3a5;
}

.pd-stat-sanity.is-danger {
  background: rgba(227, 111, 103, 0.12);
}

.pd-stat-sanity.is-danger span {
  color: #f0aaa3;
}

.pd-stat-sanity.is-safe > i {
  color: #94d29d;
}

.pd-stat-sanity.is-safe {
  background: rgba(107, 231, 167, 0.1);
}

.pd-stat-sanity.is-safe span {
  color: #9df0bd;
}

.pd-stat-sanity div {
  display: grid;
  gap: 0.02rem;
  min-width: 2.35rem;
}

.pd-stat-sanity span {
  color: var(--pd-text);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 0.88;
}

.pd-stat-sanity span:not(:last-child) {
  color: rgba(215, 203, 177, 0.9);
  font-size: 0.62rem;
  font-weight: 750;
}

.pd-stat-speed {
  min-width: 0;
  justify-content: flex-end;
  gap: 0.34rem;
  overflow: hidden;
}

.pd-stat-speed span {
  min-width: 0;
  gap: 0.16rem;
  color: var(--pd-text);
  font-size: 0.72rem;
  white-space: nowrap;
}

.pd-stat-speed span + span::before {
  content: "|";
  margin-right: 0.22rem;
  color: rgba(255, 255, 255, 0.36);
}

.pd-stat-speed i {
  color: rgba(207, 211, 223, 0.72);
  font-size: 0.76rem;
}


.pd-card-notes {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 0.16rem;
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(107, 231, 167, 0.12);
  border-radius: 8px;
  background: rgba(9, 12, 13, 0.82);
  overflow: auto;
}

.pd-card-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding-bottom: 0.22rem;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(245, 205, 107, 0.64), rgba(107, 231, 167, 0.24), transparent) 1;
}

.pd-card-notes span {
  color: var(--pd-amber);
  font-size: 0.58rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pd-card-notes span[data-behavior-tone="none"] {
  color: var(--pd-text);
}

.pd-card-notes span[data-behavior-tone="one"] {
  color: #ffd45f;
}

.pd-card-notes span[data-behavior-tone="two"] {
  color: #ff5b4f;
}

.pd-card-notes span[data-behavior-tone="many"] {
  color: #b90f1f;
}

.pd-card-notes em {
  min-width: 0;
  color: var(--pd-muted);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 850;
  text-align: right;
  text-transform: uppercase;
}

.pd-card-notes button {
  border: 0;
  padding: 0;
  color: var(--pd-amber);
  background: transparent;
  cursor: pointer;
  font-size: 0.6rem;
}

.pd-card-preview {
  display: grid;
  gap: 0.24rem;
}

.pd-card-preview-section {
  display: grid;
  gap: 0.04rem;
}

.pd-card-preview-section strong {
  color: var(--pd-amber);
  font-size: 0.56rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.pd-card-notes ul,
.pd-card-preview-section ul {
  margin: 0;
  padding-left: 0.75rem;
  color: var(--pd-text);
  font-size: 0.68rem;
  line-height: 1.22;
}

.pd-card-notes li + li,
.pd-card-preview-section li + li {
  margin-top: 0.2rem;
}

.pd-card-notes li strong {
  display: block;
  color: var(--pd-muted);
  font-size: 0.56rem;
  text-transform: uppercase;
}

.pd-ghost-card.is-selected,
.pd-map-card.is-selected {
  border-color: rgba(228, 184, 93, 0.58);
  background: rgba(228, 184, 93, 0.08);
}

.pd-ghost-card header,
.pd-map-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.65rem;
}

.pd-ghost-card h3,
.pd-map-card h3,
.pd-item-group h3 {
  margin: 0;
  letter-spacing: 0;
}

.pd-ghost-card h3 {
  font-family: Creepster, fantasy;
  font-size: 1.26rem;
  font-weight: 400;
}

.pd-ghost-card p,
.pd-info-card p,
.pd-map-card p {
  margin: 0;
  color: var(--pd-soft);
  line-height: 1.38;
}

.pd-ghost-card p,
.pd-ghost-card dd {
  font-size: 0.82rem;
}

.pd-ghost-card dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.38rem;
  margin: 0;
}

.pd-ghost-card dl div {
  display: grid;
  gap: 0.1rem;
  padding: 0.46rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.pd-ghost-card dt {
  color: var(--pd-muted);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pd-ghost-card dd {
  margin: 0;
  color: var(--pd-text);
  line-height: 1.34;
}

.pd-ghost-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}

.pd-ghost-metrics div {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
  padding: 0.42rem 0.48rem;
  border: 1px solid rgba(115, 214, 208, 0.2);
  border-radius: 8px;
  background: rgba(115, 214, 208, 0.06);
}

.pd-ghost-metrics span {
  color: var(--pd-muted);
  font-size: 0.65rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pd-ghost-metrics strong {
  min-width: 0;
  color: var(--pd-teal);
  font-size: 0.75rem;
  line-height: 1.25;
}

.pd-chip-row,
.pd-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.pd-chip,
.pd-tag {
  min-height: 1.42rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0 0.38rem;
  border: 1px solid var(--pd-line);
  border-radius: 999px;
  color: var(--pd-muted);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.66rem;
}

.pd-chip i {
  color: var(--pd-muted);
}

.pd-tag,
.pd-chip {
  --ev-color: var(--pd-muted);
}

.pd-chip.ev-emf {
  --ev-color: #e36f67;
}

.pd-chip.ev-dots {
  --ev-color: #39df5f;
}

.pd-chip.ev-freezing {
  --ev-color: #8ee8ff;
}

.pd-chip.ev-orb {
  --ev-color: #d7cf7a;
}

.pd-chip.ev-writing {
  --ev-color: #6ca8ff;
}

.pd-chip.ev-spirit {
  --ev-color: #d38a57;
}

.pd-chip.ev-uv {
  --ev-color: #aa83ff;
}

.pd-ghost-card-compact .pd-chip-row,
.pd-ghost-card-compact .pd-tag-row {
  gap: 0.24rem;
}

.pd-ghost-card-compact .pd-chip {
  min-height: 1.28rem;
  gap: 0.22rem;
  padding: 0 0.3rem;
  font-size: 0.6rem;
}

.pd-ghost-card-compact .pd-tag-row .pd-tag:nth-child(n+4) {
  display: none;
}

.pd-ghost-card-compact footer {
  display: none;
}

.pd-chip.is-found {
  border-color: color-mix(in srgb, var(--ev-color) 58%, transparent);
  color: var(--ev-color);
  background: color-mix(in srgb, var(--ev-color) 18%, rgba(0, 0, 0, 0.2));
}

.pd-chip.is-found i {
  color: var(--ev-color);
}

.pd-chip.is-forced {
  border-style: solid;
  box-shadow: inset 0 0 0 1px rgba(228, 184, 93, 0.12);
}

.pd-chip .pd-chip-lock {
  width: 0.82rem;
  height: 0.82rem;
  display: inline-grid;
  place-items: center;
  margin-left: 0.04rem;
  color: var(--pd-amber);
  font-size: 0.56rem;
}

.pd-tag.is-active {
  border-color: rgba(107, 231, 167, 0.45);
  color: var(--pd-green);
}

.pd-chip.is-excluded {
  border-color: rgba(170, 169, 162, 0.22);
  color: rgba(170, 169, 162, 0.58);
  background: rgba(0, 0, 0, 0.12);
  text-decoration: line-through;
}

.pd-chip.is-excluded i {
  color: rgba(170, 169, 162, 0.58);
}

.pd-chip.is-fake {
  border-color: rgba(228, 184, 93, 0.45);
  color: var(--pd-amber);
}

.pd-forced {
  min-height: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.24rem 0.38rem;
  border: 1px solid rgba(228, 184, 93, 0.24);
  border-radius: 8px;
  color: var(--pd-amber);
  background: rgba(228, 184, 93, 0.07);
  font-size: 0.66rem;
}

.pd-candidates footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--pd-muted);
  font-size: 0.7rem;
}

.pd-candidates footer button {
  min-height: 1.72rem;
  padding: 0 0.48rem;
}

.pd-timer-list {
  display: grid;
  gap: 0.38rem;
}

.pd-timer {
  display: grid;
  gap: 0.18rem;
  padding: 0.18rem 0.1rem 0.36rem;
  border: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: transparent;
}

.pd-timer.is-running {
  border-bottom-color: rgba(107, 231, 167, 0.44);
}

.pd-timer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.pd-timer header span {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: var(--pd-soft);
  font-size: 0.82rem;
  font-weight: 850;
}

.pd-timer header button {
  width: 1.3rem;
  height: 1.3rem;
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--pd-muted);
  background: transparent;
}

.pd-timer-row {
  display: grid;
  grid-template-columns: 1.72rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
}

.pd-timer-row > button {
  width: 1.62rem;
  height: 1.62rem;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  color: #0a0f0d;
  background: var(--pd-soft);
  border-color: transparent;
}

.pd-timer-row > button span {
  display: none;
}

.pd-timer-row strong {
  color: var(--pd-green);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.pd-timer-track {
  position: relative;
  min-height: 1.48rem;
  padding-top: 0.86rem;
}

.pd-timer-bar {
  height: 0.26rem;
  overflow: hidden;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
}

.pd-timer-bar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pd-green), var(--pd-amber));
}

.pd-timer-mark-layer {
  position: absolute;
  inset: 0 0 auto;
  height: 1.42rem;
}

.pd-timer-mark-layer button {
  position: absolute;
  top: 0.48rem;
  width: 0.08rem;
  height: 0.88rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.78);
  transform: translateX(-50%);
}

.pd-timer-mark-layer button.is-standard {
  background: rgba(255, 255, 255, 0.82);
}

.pd-timer-mark-layer button.is-blue {
  background: #58d6ff;
}

.pd-timer-mark-layer button.is-red {
  background: #ff6473;
}

.pd-timer-mark-layer button span {
  position: absolute;
  bottom: 0.88rem;
  left: 50%;
  max-width: 4.8rem;
  color: var(--pd-muted);
  font-size: 0.56rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(calc(-50% + var(--label-shift, 0px)));
  pointer-events: none;
}

.pd-timer-mark-layer button.is-label-high span {
  bottom: 0.82rem;
}

.pd-timer-mark-layer button.is-label-low span {
  bottom: 0.82rem;
}

.pd-timer-mark-layer button.is-blue span {
  color: #58d6ff;
}

.pd-timer-mark-layer button.is-red span {
  color: #ff6473;
}

.pd-timer-mark-layer button.is-edge-start span {
  left: 0;
  transform: translateX(var(--label-shift, 0px));
}

.pd-timer-mark-layer button.is-edge-end span {
  left: auto;
  right: 0;
  transform: translateX(var(--label-shift, 0px));
}

.pd-timer-mark-layer button.is-active {
  box-shadow: 0 0 0.55rem rgba(255, 255, 255, 0.18);
}

.pd-timer-mark-layer button:hover span {
  color: var(--pd-amber);
}

.pd-timer small {
  display: none;
}

.pd-speed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34rem;
}

.pd-speed-grid button {
  min-height: 2.28rem;
  display: flex;
  align-items: center;
  gap: 0.46rem;
  padding: 0 0.55rem;
  color: var(--pd-muted);
}

.pd-speed-grid button.is-active {
  border-color: rgba(127, 178, 230, 0.5);
  color: var(--pd-blue);
  background: rgba(127, 178, 230, 0.12);
}

.pd-map-focus {
  display: grid;
  gap: 0.42rem;
  padding: 0.6rem;
  border: 1px solid rgba(127, 178, 230, 0.22);
  border-radius: 8px;
  background: rgba(127, 178, 230, 0.06);
}

.pd-map-focus strong {
  color: var(--pd-blue);
}

.pd-map-focus span {
  color: var(--pd-muted);
  line-height: 1.38;
}

.pd-library-head {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
}

.pd-search {
  min-width: min(24rem, 50%);
  height: 2.55rem;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: center;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.pd-search i {
  display: grid;
  place-items: center;
  color: var(--pd-muted);
}

.pd-search input {
  height: 100%;
  border: 0;
  background: transparent;
}

.pd-library-grid {
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

[data-ghost-library].pd-library-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 27rem), 1fr));
}

[data-cursed-library].pd-library-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 27rem), 1fr));
}

.pd-item-groups {
  display: grid;
  gap: 0.85rem;
}

.pd-item-group {
  display: grid;
  gap: 0.65rem;
}

.pd-item-grid {
  display: block;
  columns: 28rem;
  column-gap: 0.62rem;
}

.pd-info-card {
  min-height: 8rem;
  display: grid;
  align-content: start;
  gap: 0.48rem;
  padding: 0.68rem;
}

.pd-info-card strong {
  color: var(--pd-green);
}

.pd-equipment-card {
  position: relative;
  height: auto;
  min-height: 0;
  grid-template-rows: auto auto;
  gap: 0.58rem;
  overflow: visible;
  cursor: default;
  break-inside: avoid;
  margin: 0 0 0.62rem;
}

.pd-equipment-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.5rem;
}

.pd-equipment-card header span {
  flex: 0 0 auto;
  padding: 0.16rem 0.38rem;
  border: 1px solid rgba(170, 169, 162, 0.18);
  border-radius: 999px;
  color: var(--pd-muted);
  background: rgba(0, 0, 0, 0.16);
  font-size: 0.62rem;
  font-weight: 850;
}

.pd-equipment-card header span.is-default {
  border-color: rgba(107, 231, 167, 0.32);
  color: var(--pd-green);
  background: rgba(107, 231, 167, 0.08);
}

.pd-item-view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
  padding: 0.22rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.pd-item-view-tabs button {
  min-height: 2rem;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--pd-muted);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.pd-item-view-tabs button.is-active {
  border-color: rgba(107, 231, 167, 0.34);
  color: var(--pd-green);
  background: rgba(107, 231, 167, 0.09);
}

.pd-item-view-panel {
  min-height: 0;
  display: none;
  gap: 0.58rem;
}

.pd-item-view-panel.is-active {
  display: grid;
  align-content: start;
  overflow: visible;
  padding-right: 0;
}

.pd-item-tier-gallery {
  display: grid;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.pd-item-tier-tabs {
  display: flex;
  gap: 0.18rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pd-item-tier-tabs button {
  min-height: 2rem;
  padding: 0 0.52rem;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--pd-muted);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.pd-item-tier-tabs button.is-active {
  border-bottom-color: #9587ff;
  color: #b7adff;
}

.pd-item-tier-panel {
  display: none;
  gap: 0.5rem;
}

.pd-item-tier-panel.is-active {
  display: grid;
}

.pd-item-tier-image {
  width: 100%;
  min-height: 11rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.1) 58%);
  cursor: zoom-in;
}

.pd-item-tier-image img {
  width: min(100%, 14rem);
  height: 11rem;
  object-fit: contain;
  filter: drop-shadow(0 1rem 1.6rem rgba(0, 0, 0, 0.5));
}

.pd-item-tier-flavor {
  color: var(--pd-muted);
  font-style: italic;
  text-align: center;
}

.pd-item-tier-properties {
  display: grid;
  gap: 0.24rem;
  margin: 0;
}

.pd-item-tier-properties div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1fr);
  gap: 0.45rem;
  padding: 0.16rem 0;
}

.pd-item-tier-properties dt {
  color: var(--pd-muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.pd-item-tier-properties dd {
  margin: 0;
  color: #19a819;
  font-size: 0.74rem;
  line-height: 1.25;
}

.pd-item-tier-properties div.is-danger dd {
  color: #ff4c4c;
}

.pd-equipment-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.2rem, 1fr));
  gap: 0.32rem;
}

.pd-equipment-meta div {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
  padding: 0.34rem 0.38rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.15);
}

.pd-equipment-meta span,
.pd-equipment-card dt {
  color: var(--pd-muted);
  font-size: 0.58rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pd-equipment-meta b {
  min-width: 0;
  color: var(--pd-amber);
  font-size: 0.74rem;
}

.pd-equipment-card dl {
  display: grid;
  gap: 0.32rem;
  margin: 0;
}

.pd-equipment-card dl div {
  display: grid;
  gap: 0.1rem;
  padding: 0.38rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.pd-equipment-card dd {
  margin: 0;
  color: var(--pd-text);
  font-size: 0.74rem;
  line-height: 1.32;
}

.pd-info-card em,
.pd-map-card em {
  color: var(--pd-muted);
  line-height: 1.38;
  font-style: normal;
}

.pd-cursed-card {
  position: relative;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-content: initial;
  gap: 0.62rem;
  overflow: visible;
  cursor: default;
  break-inside: avoid;
  margin: 0 0 0.62rem;
}

.pd-info-card.pd-cursed-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-content: stretch;
  overflow: visible;
}

.pd-cursed-card > * {
  flex: 0 0 auto;
  position: static;
}

.pd-cursed-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.pd-cursed-card header span {
  color: var(--pd-amber);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pd-cursed-image {
  width: 100%;
  height: 11rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 22%, rgba(255, 211, 113, 0.1), rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.46));
  cursor: zoom-in;
  overflow: hidden;
}

.pd-cursed-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.95) contrast(1.04);
}

.pd-cursed-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}

.pd-cursed-meta div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  padding: 0.48rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.pd-cursed-meta span {
  color: var(--pd-muted);
  font-size: 0.64rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pd-cursed-meta b {
  color: var(--pd-amber);
  font-size: 0.82rem;
  line-height: 1.22;
}

.pd-cursed-card > p,
.pd-cursed-blocks,
.pd-cursed-details {
  flex: 0 0 auto;
  min-height: 0;
}

.pd-cursed-blocks {
  display: grid;
  gap: 0.42rem;
}

.pd-cursed-block,
.pd-cursed-details {
  position: relative;
  display: grid;
  gap: 0.28rem;
  padding: 0.5rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.pd-cursed-block h4,
.pd-cursed-details h4 {
  margin: 0;
  color: var(--pd-amber);
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.08;
  text-transform: uppercase;
}

.pd-cursed-block p {
  margin: 0;
  color: var(--pd-text);
  font-size: 0.82rem;
  line-height: 1.36;
}

.pd-cursed-details {
  background: rgba(255, 211, 113, 0.04);
}

.pd-cursed-details ul {
  display: grid;
  gap: 0.28rem;
  margin: 0;
  padding-left: 1rem;
}

.pd-cursed-details li {
  color: var(--pd-text);
  font-size: 0.8rem;
  line-height: 1.35;
}

.pd-map-grid {
  display: block;
  columns: 27rem;
  column-gap: 0.62rem;
}

.pd-map-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  padding: 0.68rem;
  overflow: hidden;
}

.pd-map-library-card {
  position: relative;
  width: 100%;
  height: auto;
  align-self: start;
  display: inline-flex;
  margin: 0 0 0.62rem;
  break-inside: avoid;
  page-break-inside: avoid;
  cursor: default;
  overflow: visible;
}

.pd-map-library-card .pd-map-scroll {
  max-height: none;
}

.pd-map-scroll {
  min-height: 0;
  display: block;
  overflow: visible;
  scrollbar-width: none;
}

.pd-map-scroll > * + * {
  margin-top: 0.62rem;
}

.pd-map-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.pd-library-modal-body .pd-info-card,
.pd-library-modal-body .pd-ghost-library-card,
.pd-library-modal-body .pd-equipment-card,
.pd-library-modal-body .pd-cursed-card,
.pd-library-modal-body .pd-map-library-card {
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  cursor: default;
}

.pd-library-modal-body .pd-ghost-library-card::after,
.pd-library-modal-body .pd-equipment-card::after,
.pd-library-modal-body .pd-cursed-card::after,
.pd-library-modal-body .pd-map-library-card::after {
  content: none;
}

.pd-library-modal-body .pd-ghost-library-card .pd-entity-lore,
.pd-library-modal-body .pd-item-view-panel.is-active,
.pd-library-modal-body .pd-cursed-card,
.pd-library-modal-body .pd-map-scroll {
  overflow: visible;
  max-height: none;
}

.pd-library-modal-body .pd-map-library-card {
  display: flex;
}

.pd-map-card header > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pd-map-card header span {
  min-height: 1.55rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.48rem;
  border-radius: 999px;
  color: var(--pd-blue);
  background: rgba(127, 178, 230, 0.12);
  font-size: 0.72rem;
  font-weight: 850;
}

.pd-map-thumb {
  width: 100%;
  height: 13rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--pd-amber);
  cursor: zoom-in;
  overflow: hidden;
}

.pd-map-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.95) contrast(1.02);
  transition: transform 180ms ease;
}

.pd-map-thumb:hover img {
  transform: scale(1.04);
}

.pd-map-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.pd-map-title-row b {
  flex: 0 0 auto;
  color: var(--pd-amber);
  font-size: 0.76rem;
}

.pd-map-info {
  display: grid;
  gap: 0.42rem;
}

.pd-map-info section,
.pd-map-details {
  padding: 0.52rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.pd-map-info section {
  display: grid;
  gap: 0.22rem;
}

.pd-map-info strong {
  color: var(--pd-amber);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.pd-map-info span {
  color: var(--pd-text);
  font-size: 0.82rem;
  line-height: 1.34;
}

.pd-map-stats {
  display: grid;
  gap: 0.45rem;
  padding: 0.52rem;
  border: 1px solid rgba(255, 211, 113, 0.22);
  border-radius: 8px;
  background: rgba(255, 211, 113, 0.05);
}

.pd-map-stats > strong {
  color: var(--pd-amber);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.pd-map-stats div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.pd-map-stats span {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
  padding: 0.42rem;
  border: 1px solid var(--pd-line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
}

.pd-map-stats i {
  color: var(--pd-muted);
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pd-map-stats b {
  color: var(--pd-text);
  font-size: 0.79rem;
  line-height: 1.25;
}

.pd-map-details {
  min-height: 0;
  display: block;
  margin: 0;
  padding: 0.62rem 0.72rem;
  overflow: visible;
}

.pd-map-details ul {
  display: block;
  margin: 0;
  padding: 0 0 0 1rem;
  color: var(--pd-soft);
  font-size: 0.8rem;
  line-height: 1.35;
}

.pd-map-details li {
  display: list-item;
  margin: 0;
  padding-left: 0.12rem;
}

.pd-map-details li + li {
  margin-top: 0.28rem;
}

.pd-map-details li::marker {
  color: var(--pd-amber);
}

.pd-map-card footer {
  flex: 0 0 auto;
  display: grid;
  gap: 0.42rem;
}

.pd-map-card footer button {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  color: var(--pd-text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.pd-map-card footer button:hover {
  border-color: rgba(105, 244, 166, 0.48);
  background: rgba(105, 244, 166, 0.1);
}

.pd-empty {
  min-height: 10rem;
  display: grid;
  place-items: center;
  gap: 0.48rem;
  padding: 1.2rem;
  border: 1px dashed var(--pd-line);
  border-radius: 8px;
  color: var(--pd-muted);
  text-align: center;
}

.pd-empty i {
  color: var(--pd-amber);
  font-size: 1.4rem;
}

.pd-empty strong {
  color: var(--pd-text);
}

.pd-empty p {
  margin: 0;
}

@media (max-width: 1280px) {
  .pd-hunt-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .pd-candidates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 1180px) {
  .pd-shell {
    grid-template-columns: 15rem minmax(0, 1fr);
  }

  .pd-topbar {
    grid-template-columns: minmax(16rem, 1fr) minmax(10rem, auto) auto;
  }

}

@media (min-width: 2160px) {
  .pd-candidates {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .pd-top-tabs {
    grid-column: 1 / -1;
  }

}

@media (max-width: 920px) {
  .pd-hunt-layout {
    grid-template-columns: 1fr;
  }

  .pd-investigation {
    position: static;
    max-height: none;
  }

}

@media (max-width: 760px) {
  .pd-shell {
    grid-template-columns: 1fr;
  }

  .pd-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(19rem, 86vw);
    transform: translateX(-105%);
    transition: transform 0.18s ease;
  }

  .pd-shell.is-nav-open .pd-rail {
    transform: translateX(0);
  }

  .pd-brand {
    grid-template-columns: 2.55rem 1fr;
  }

  .pd-tab span {
    display: block;
  }

  .pd-top-tabs .pd-tab span {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .pd-tab {
    grid-template-columns: 1.25rem 1fr;
    place-items: stretch;
    padding: 0 0.72rem;
  }

  .pd-top-tabs .pd-tab {
    width: 2.65rem;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
  }

  .pd-mobile-tabs {
    display: flex;
  }

  .pd-main {
    padding: 0.55rem;
  }

  .pd-topbar,
  .pd-section-head,
  .pd-library-head,
  .pd-tool-head {
    align-items: stretch;
  }

  .pd-topbar {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pd-quick-map {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    overflow: hidden;
  }

  .pd-quick-map [data-tooltip]::before,
  .pd-quick-map [data-tooltip]::after {
    content: none;
  }

  .pd-quick-stats {
    grid-column: 1 / -1;
    order: 5;
    flex-wrap: wrap;
  }

  .pd-quick-track {
    grid-column: 1 / -1;
    order: 7;
  }

  .pd-header-sync {
    grid-column: 1 / -1;
    order: 1;
    justify-content: flex-end;
  }

  .pd-quick-separator {
    display: none;
  }

  .pd-quick-timer-copy {
    grid-column: 1 / -1;
    order: 6;
  }

  .pd-quick-map > output {
    order: 8;
  }

  .pd-quick-map > [data-timer-toggle] {
    order: 9;
  }

  .pd-quick-map > [data-timer-reset] {
    order: 10;
  }

  .pd-quick-map > .pd-ghost-reset {
    grid-column: 1 / -1;
    order: 11;
  }

  .pd-topbar h1 {
    font-size: 2rem;
  }

  .pd-ghost-reset,
  .pd-hub-link-header,
  .pd-hub-link,
  .pd-editor-open,
  .pd-field,
  .pd-search {
    width: 100%;
  }

  .pd-ghost-reset,
  .pd-hub-link-header,
  .pd-hub-link,
  .pd-editor-open {
    justify-content: center;
  }

  .pd-topbar-actions,
  .pd-hub-link-header {
    justify-self: stretch;
  }

  .pd-topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pd-editor-toolbar,
  .pd-editor-upload {
    grid-template-columns: 1fr;
  }

  .pd-editor-upload output {
    min-height: 1.2rem;
  }

  .pd-editor-json-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pd-editor-reference > div {
    grid-template-columns: 1fr;
  }

  .pd-library-head {
    flex-direction: column;
  }

  .pd-library-grid,
  .pd-item-grid,
  .pd-map-grid,
  .pd-candidates {
    grid-template-columns: 1fr;
  }

  [data-ghost-library].pd-library-grid,
  [data-cursed-library].pd-library-grid,
  .pd-item-grid,
  .pd-map-grid {
    columns: 1;
  }

  .pd-ghost-card-compact {
    height: auto;
  }
}

@media (max-width: 520px) {
  .pd-behavior-grid {
    grid-template-columns: 1fr;
  }

  .pd-equipment-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-ghost-metrics {
    grid-template-columns: 1fr;
  }

  .pd-card-body {
    grid-template-columns: 1fr;
  }

  .pd-ghost-card-compact {
    height: auto;
  }
}

.pd-rich-html {
  color: var(--pd-text);
  font-size: 0.88rem;
  line-height: 1.55;
}

.pd-rich-html p,
.pd-rich-html ul,
.pd-rich-html ol,
.pd-rich-html blockquote,
.pd-rich-html pre {
  margin: 0.55rem 0 0;
}

.pd-rich-html ul,
.pd-rich-html ol {
  padding-left: 1.15rem;
}

.pd-rich-html img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 0.65rem;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
}

.pd-rich-html a {
  color: var(--pd-green);
}

.pd-rich-html blockquote {
  padding: 0.55rem 0.7rem;
  border-left: 3px solid rgba(107, 231, 167, 0.55);
  background: rgba(107, 231, 167, 0.08);
}

.pd-rich-html code,
.pd-rich-html pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, Liberation Mono, monospace;
}

.pd-popup-html {
  display: none;
}

.pd-library-modal-body .pd-popup-html {
  display: block;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--pd-line);
}

.pd-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(107, 231, 167, 0.14), transparent 34%),
    linear-gradient(180deg, #111719 0%, #07090a 64%);
  color: var(--pd-text);
}

.pd-login-panel {
  width: min(100%, 390px);
  padding: 28px;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(13, 18, 20, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.pd-login-kicker {
  margin: 0 0 8px;
  color: var(--pd-green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-login-panel h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
}

.pd-login-copy {
  margin: 12px 0 22px;
  color: var(--pd-muted);
  line-height: 1.5;
}

.pd-login-form {
  display: grid;
  gap: 10px;
}

.pd-login-form label {
  color: var(--pd-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pd-login-form input,
.pd-login-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: rgba(4, 7, 8, 0.82);
  color: var(--pd-text);
  font: inherit;
}

.pd-login-form input:focus,
.pd-login-form select:focus {
  outline: 2px solid rgba(107, 231, 167, 0.45);
  outline-offset: 2px;
}

.pd-login-form button {
  min-height: 44px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  background: var(--pd-green);
  color: #06100b;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.pd-login-error {
  margin: 2px 0 0;
  color: #ff8c8c;
  font-weight: 800;
}
