/* Functional depth follows the original warm plum/brass label palette. */
.depth-details {
  padding: 18px;
  margin: 16px 0;
  background: linear-gradient(125deg, #29232d, #211f25);
  border: 1px solid #514353;
  border-radius: 8px;
}
.depth-details > summary,
details > summary {
  cursor: pointer;
  color: #ddc38c;
  font-weight: 600;
  line-height: 1.6;
}
.depth-details[open] > summary {
  margin-bottom: 14px;
}
.depth-details details {
  margin: 12px 0;
}
.depth-details label,
.regional-grid small {
  display: block;
}
.depth-details .form-grid {
  margin-top: 14px;
}
.world-floorplan {
  position: relative;
  width: 100%;
  aspect-ratio: 12/8;
  background-size: cover;
  background-position: center;
  border: 1px solid #a28759;
  border-radius: 7px;
  isolation: isolate;
  overflow: hidden;
}
.world-floorplan:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#17131dcc, #17131daa),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(8.333% - 1px),
      #ad956638 8.333%
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent calc(12.5% - 1px),
      #ad956638 12.5%
    );
  pointer-events: none;
}
.world-room {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  background: #302b30e8;
  border: 2px solid #ad9566;
  border-radius: 7px;
  color: #f1e8d6;
  padding: 8px;
  cursor: grab;
  overflow: hidden;
  font: inherit;
}
.world-room.office {
  background: #382d40eb;
}
.world-room.lounge {
  background: #293b36ed;
}
.world-room strong {
  font-size: clamp(9px, 1.1vw, 14px);
  position: relative;
}
.world-room small {
  font-size: 10px;
  position: relative;
}
.room-prop {
  position: absolute;
  inset: 10% 20%;
  width: 60%;
  height: 80%;
  object-fit: contain;
  opacity: 0.34;
  pointer-events: none;
}
.world-gear {
  position: absolute;
  width: 5%;
  height: 9%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 2px #000);
}
.world-actor {
  position: absolute;
  display: flex;
  align-items: center;
  flex-direction: column;
  pointer-events: none;
  animation: world-working 5s ease-in-out infinite alternate;
}
.world-actor img {
  height: 26px;
  width: 26px;
  border: 2px solid #e4c37b;
  border-radius: 50%;
  object-fit: cover;
}
.world-actor small {
  font-size: 8px;
  line-height: 1.2;
  background: #17131de8;
  color: #efe1c2;
  border-radius: 3px;
  padding: 2px;
}
.world-preview {
  position: absolute;
  border: 3px dashed #95d2aa;
  background: #95d2aa33;
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 4;
  font-size: 12px;
  pointer-events: none;
}
.world-preview[hidden] {
  display: none;
}
.world-preview.invalid {
  border-color: #ed8e93;
  background: #ed8e9333;
}
.world-actions,
.decision-options,
.track-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.world-actions .btn,
.decision-options .btn,
.track-actions .btn {
  white-space: normal;
  min-height: 40px;
}
.depth-decisions {
  padding: 18px;
  display: grid;
  gap: 16px;
}
.decision-card,
.track-row,
.commission,
.critic-review {
  padding: 14px 0;
  border-bottom: 1px solid #514353;
}
.decision-card h3 {
  margin-top: 12px;
}
.decision-card p,
.artist-personality p {
  font-size: 13px;
  line-height: 1.7;
  color: #beb4bf;
}
.artist-personality {
  margin: 12px 0;
  font-size: 12px;
}
.track-editor > summary {
  font-size: 15px;
}
.track-editor .track-actions {
  padding: 0 18px;
}
.track-editor .form-body {
  padding: 14px 0;
}
.regional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.regional-grid article {
  background: #302835;
  border: 1px solid #514353;
  padding: 15px;
  border-radius: 7px;
}
.regional-grid p,
.regional-grid small,
.review-grid p {
  font-size: 12px;
  line-height: 1.7;
  color: #c2b8c4;
}
.tour-venues {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.tour-venues figure {
  margin: 0;
  min-width: 165px;
  max-width: 210px;
}
.tour-venues img {
  height: 100px;
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.tour-venues figcaption {
  font-size: 11px;
  line-height: 1.5;
  color: #d8c9b0;
}
.notebook {
  font-size: 13px;
}
.notebook > label {
  margin: 14px 0;
}
.objective-list {
  padding-left: 18px;
  line-height: 1.9;
  font-size: 13px;
}
.world-plan .form-body {
  padding: 14px 0;
}
@keyframes world-working {
  to {
    transform: translate(3px, 3px);
  }
}
.reduced-motion .world-actor {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .world-actor {
    animation: none;
  }
}
@media (max-width: 650px) {
  .world-room {
    padding: 2px;
  }
  .world-room small {
    display: none;
  }
  .world-actor img {
    width: 20px;
    height: 20px;
  }
  .depth-details {
    padding: 12px;
  }
  .regional-grid {
    grid-template-columns: 1fr;
  }
  .decision-options .btn {
    width: 100%;
  }
  .world-floorplan {
    min-height: 280px;
  }
}
/* Retention guidance follows the existing paper, brass and plum panel grammar. */
.commitment-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  background: var(--panel, #251e29);
  border-bottom: 1px solid #665263;
  font-size: 0.8rem;
  flex-wrap: wrap;
}
.commitment-indicator span {
  flex: 1;
  color: #d4c4cf;
}
.commitment-indicator .btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
}
.primary-move h3 {
  color: #edc776;
}
.primary-move p,
.alternative-move p {
  font-size: 0.85rem;
  line-height: 1.5;
}
.primary-move small,
.alternative-move small {
  display: block;
  color: #c9bac7;
  margin: 0.7rem 0;
}
.alternative-move {
  border-top: 1px solid #514150;
  margin-top: 1rem;
  padding-top: 1rem;
}
.creative-brief {
  margin-bottom: 0.75rem;
}
.advanced-record,
.contract-advanced {
  margin: 1rem 0;
  padding: 0.8rem;
  background: #241e29;
  border: 1px solid #514150;
  border-radius: 0.4rem;
}
.advanced-record > summary,
.contract-advanced > summary {
  cursor: pointer;
  color: #edc776;
}
.advanced-record[open] > summary,
.contract-advanced[open] > summary {
  margin-bottom: 1rem;
}
.plan-tools {
  border-top: 1px solid #514150;
  margin-top: 1rem;
  padding-top: 1rem;
}
.plan-tools .btn,
.contract-presets .btn {
  margin: 0.3rem 0.4rem 0.3rem 0;
}
.simple-record-range,
.receipt-projection {
  background: #2d2630;
  border-left: 3px solid #c7a765;
  padding: 0.7rem;
  line-height: 1.6;
}
.receipt-waterfall {
  margin: 0.8rem 0;
}
.receipt-waterfall dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.receipt-waterfall dd {
  margin: 0;
  color: #edc776;
}
.company-waterfall {
  padding: 1rem;
  background: #241e29;
  margin-bottom: 1rem;
}
.company-waterfall p,
.legacy-moments p {
  font-size: 0.85rem;
  line-height: 1.6;
}
.legacy-moments article,
.era-preview {
  border-top: 1px solid #514150;
  padding: 0.8rem 0;
}
.decision-card:focus {
  outline: 2px solid #d7b671;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .commitment-indicator {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  .receipt-waterfall dl {
    grid-template-columns: 1fr;
  }
}
