.player-name-link {
  padding: 0;
  border: 0;
  background: none;
  color: #315d3b;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
}
#playerInspector {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(1180px, calc(100vw - 32px));
  height: min(880px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid #d1ddce;
  border-radius: 18px;
  background: #f4f7f1;
  color: #3c5140;
  box-shadow: 0 24px 90px #142a2655;
  overflow: hidden;
}
#playerInspector[open] {
  display: flex;
  flex-direction: column;
}
#playerInspector::backdrop {
  background: #132b259c;
  backdrop-filter: none;
}
.inspector-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 26px 18px;
  background: #fff;
  border-bottom: 1px solid #e2e9df;
}
.inspector-player {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.inspector-player > img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid #dde6d5;
  border-radius: 14px;
  background: #f2f6e8;
}
.inspector-player > div {
  min-width: 0;
}
.inspector-eyebrow {
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: #92a184;
}
.inspector-heading h2 {
  font: 700 25px Georgia;
  margin: 4px 0;
  color: #304e37;
}
.inspector-heading p {
  margin: 0;
  color: #859180;
  font-size: 11px;
  overflow-wrap: anywhere;
}
#inspectorClose {
  flex: none;
  border: 0;
  background: #eef3e9;
  color: #75846c;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  font: 25px Arial;
}
.inspector-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 26px;
  background: #fafcf8;
  border-bottom: 1px solid #e2e9df;
}
.inspector-toolbar > div {
  display: flex;
  gap: 6px;
}
.inspector-toolbar button {
  font-size: 10px;
  padding: 7px 9px;
}
#inspectorEdit {
  background: #315d3b;
  color: #fff;
  border-color: #315d3b;
}
#inspectorLive {
  color: #6b805c;
  font-size: 10px;
}
#inspectorLive:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #79ad61;
  box-shadow: 0 0 0 3px #e9f1df;
  margin-right: 8px;
}
.inspector-tabs {
  display: flex;
  gap: 5px;
  padding: 12px 26px;
  background: #fff;
  border-bottom: 1px solid #e2e9df;
  overflow-x: auto;
  flex: none;
}
.inspector-tabs button {
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: #829078;
  border-radius: 8px;
  font-size: 11px;
  padding: 9px 15px;
}
.inspector-tabs button.selected {
  background: #eaf2e3;
  color: #315d3b;
}
#inspectorContent {
  padding: 22px 26px;
  overflow: auto;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
}
.inspector-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.inspector-stats > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e0e8db;
  border-radius: 12px;
}
.inspector-stats img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.inspector-stats strong {
  display: block;
  font-size: 21px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.inspector-stats small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: #92a087;
}
.inspector-section {
  margin: 0 0 24px;
}
.inspector-section h3 {
  font: 700 17px Georgia;
  margin: 0 0 12px;
  color: #3c5940;
}
.inspector-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.inspector-section-title h3 {
  margin: 0;
}
.inspector-section-title > span {
  color: #87967d;
  font-size: 10px;
}
.inspector-note {
  font-size: 11px;
  line-height: 1.6;
  color: #89967e;
  margin: 0 0 16px;
}
.inspector-plots {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.inspector-plot {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  padding: 12px 7px;
  min-height: 184px;
  border: 1px solid #dce5d2;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  text-align: center;
}
.inspector-plot.is-locked {
  background: #edf1e8;
  border-style: dashed;
  opacity: 0.65;
}
.inspector-plot.is-ripe {
  border-color: #9bbc71;
  background: linear-gradient(#fff, #f1f7e7);
}
.inspector-plot-number {
  position: absolute;
  top: 9px;
  left: 9px;
  color: #9ca78c;
  font-size: 9px;
}
.inspector-plot-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 78px;
  background: url("/assets/v2/terreno-terra.png") center bottom/85% auto no-repeat;
}
.inspector-plot.is-locked .inspector-plot-art {
  background: none;
}
.inspector-plot-art img {
  width: 78px;
  height: 76px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #4b542b20);
}
.inspector-plot-art > span {
  font-size: 24px;
}
.inspector-plot b {
  font-size: 11px;
}
.inspector-plot small {
  font-size: 9px;
  color: #8b977e;
}
.inspector-plot.is-ripe > small {
  color: #578a36;
}
.inspector-care {
  display: flex;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
}
.inspector-care span {
  border-radius: 4px;
  background: #edf4df;
  padding: 3px 4px;
  color: #6f8550;
  font-size: 8px;
}
#playerInspector progress {
  height: 5px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e5ebdd;
  appearance: none;
  margin: 3px 0;
}
#playerInspector progress::-webkit-progress-bar {
  background: #e5ebdd;
}
#playerInspector progress::-webkit-progress-value {
  background: #88ad5d;
  border-radius: 8px;
}
#playerInspector progress::-moz-progress-bar {
  background: #88ad5d;
  border-radius: 8px;
}
.inspector-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.inspector-item {
  padding: 14px 12px;
  background: #fff;
  border: 1px solid #e0e7d8;
  border-radius: 12px;
  text-align: center;
}
.inspector-item-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 85px;
  margin-bottom: 9px;
}
.inspector-item-art img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}
.inspector-item-art strong {
  position: absolute;
  right: 0;
  bottom: 0;
  background: #eef4df;
  color: #55783a;
  padding: 4px 7px;
  border: 1px solid #dce6c7;
  border-radius: 7px;
  font-size: 12px;
}
.inspector-item > b {
  display: block;
  font-size: 11px;
  line-height: 1.5;
}
.inspector-item > small {
  display: block;
  color: #909c82;
  margin-top: 5px;
  font-size: 9px;
}
.inspector-empty {
  padding: 22px;
  border: 1px dashed #d9e2d1;
  border-radius: 10px;
  color: #939f89;
  text-align: center;
  font-size: 12px;
  background: #f9fbf5;
}
.inspector-callout {
  padding: 17px 20px;
  border-radius: 12px;
  background: #e9f2df;
  border: 1px solid #d5e2c4;
  margin-bottom: 24px;
}
.inspector-callout > span,
.inspector-callout > small {
  display: block;
  color: #7c9264;
  font-size: 11px;
}
.inspector-callout strong {
  display: block;
  font-size: 24px;
  margin: 5px 0;
  color: #426c32;
}
.inspector-animal {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #dde7d4;
  background: #fff;
  border-radius: 13px;
  padding: 16px;
  grid-column: span 2;
}
.inspector-animal > img {
  width: 90px;
  height: 100px;
  object-fit: contain;
}
.inspector-animal > div {
  flex: 1;
}
.inspector-animal h4 {
  margin: 0 0 8px;
  font-size: 14px;
}
.inspector-animal h4 small {
  font-size: 9px;
  color: #93a283;
  display: block;
  margin-top: 4px;
}
.inspector-animal p {
  margin: 7px 0 0;
  font-size: 10px;
  color: #869779;
  line-height: 1.8;
}
.inspector-tag {
  display: inline-block;
  font-size: 9px;
  color: #5c813e;
  background: #edf5e3;
  border-radius: 5px;
  padding: 4px 7px;
}
.inspector-tag.is-warning {
  color: #aa7944;
  background: #fff2d9;
}
.inspector-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid #e1e8db;
  border-radius: 11px;
  overflow: hidden;
  background: #e1e8db;
}
.inspector-facts > div {
  background: #fff;
  padding: 12px 15px;
  min-width: 0;
}
.inspector-facts dt {
  color: #92a086;
  font-size: 10px;
  margin-bottom: 5px;
}
.inspector-facts dd {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.inspector-friends {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.inspector-friends > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 3px 9px;
  padding: 11px;
  background: #fff;
  border: 1px solid #e0e7da;
  border-radius: 10px;
}
.inspector-friends img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  grid-row: span 2;
}
.inspector-friends b {
  font-size: 11px;
}
.inspector-friends span {
  font-size: 9px;
  color: #94a086;
}
.inspector-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.inspector-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  border-bottom: 1px solid #e0e7d9;
  background: #fff;
  font-size: 11px;
}
.inspector-list span,
.inspector-list small {
  color: #93a086;
}
.inspector-list small {
  margin-left: auto;
}
.inspector-raw summary {
  font-size: 11px;
  color: #758669;
  cursor: pointer;
  padding: 12px;
  background: #eaf0e2;
  border-radius: 7px;
}
#playerInspector pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 10px;
  line-height: 1.5;
  max-height: 300px;
  overflow: auto;
  padding: 12px;
  background: #f0f4eb;
  border-radius: 8px;
}
.inspector-timeline {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
}
.inspector-timeline li {
  display: flex;
  gap: 15px;
  padding: 0 0 22px;
  position: relative;
}
.inspector-timeline li:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: #d7e1cf;
}
.inspector-event-dot {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #84a969;
  box-shadow: 0 0 0 4px #e8f0df;
  margin-top: 5px;
}
.inspector-timeline li > div {
  flex: 1;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid #e0e8d9;
  border-radius: 11px;
}
.inspector-timeline time {
  font-size: 9px;
  color: #98a18d;
}
.inspector-timeline h4 {
  margin: 5px 0 7px;
  font-size: 13px;
}
.inspector-timeline p {
  margin: 0 0 7px;
  color: #718366;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.inspector-timeline small {
  font-size: 9px;
  color: #9ca78f;
}
.inspector-timeline details {
  margin-top: 9px;
}
.inspector-timeline summary {
  cursor: pointer;
  font-size: 9px;
  color: #8d9a7e;
}
.inspector-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.inspector-pager span {
  font-size: 10px;
  color: #94a085;
}
@media (max-width: 850px) {
  .inspector-plots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .inspector-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inspector-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .inspector-tabs {
    padding: 10px 16px;
  }
  .inspector-heading {
    padding: 16px;
  }
  .inspector-toolbar {
    padding: 10px 16px;
  }
  #inspectorContent {
    padding: 16px;
  }
}
@media (max-width: 500px) {
  #playerInspector {
    width: calc(100vw - 12px);
    height: calc(100dvh - 16px);
    border-radius: 14px;
  }
  .inspector-heading h2 {
    font-size: 21px;
  }
  .inspector-player > img {
    width: 44px;
    height: 44px;
  }
  .inspector-plots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inspector-stats {
    gap: 8px;
  }
  .inspector-stats > div {
    padding: 12px;
    gap: 8px;
  }
  .inspector-stats strong {
    font-size: 18px;
  }
  .inspector-stats img {
    width: 27px;
    height: 27px;
  }
  .inspector-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inspector-animal {
    grid-column: span 2;
  }
  .inspector-facts {
    grid-template-columns: 1fr;
  }
  .inspector-toolbar > div {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 0.7fr 1fr;
  }
  .inspector-toolbar button {
    font-size: 9px;
    padding: 7px;
  }
  .inspector-tabs button {
    padding: 8px 11px;
  }
  .inspector-heading p {
    font-size: 10px;
  }
}

.inspector-missions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.inspector-missions article {
  padding: 14px;
  background: #fff;
  border: 1px solid #e0e7da;
  border-radius: 10px;
}
.inspector-missions b,
.inspector-missions span,
.inspector-missions small {
  display: block;
}
.inspector-missions b {
  font-size: 12px;
  margin-bottom: 7px;
}
.inspector-missions span,
.inspector-missions small {
  font-size: 10px;
  color: #8a997e;
}
.inspector-missions progress {
  margin: 8px 0 !important;
}
