.npc { max-width: 760px; }

.npc-edition-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.npc-edition-toggle { display: flex; gap: 6px; }
.npc-edition-btn {
  padding: 8px 14px; font-size: 13px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; cursor: pointer; color: #27331f;
}
.npc-edition-active { background: #19616a; border-color: #19616a; color: #fff; }
.npc-callout { font-size: 13px; color: #5b6b56; margin: 0; }

.npc-panels { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; margin-bottom: 22px; }
.npc-panel {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #f3f4f8;
  border: 1px solid #d9e0d4; border-radius: 8px;
}
.npc-panel-title { margin: 0; font-size: 14px; font-weight: 700; color: #27331f; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.npc-scale-tag { font-size: 11.5px; font-weight: 700; color: #19616a; background: #fff; border: 1px solid #d9e0d4; border-radius: 4px; padding: 2px 6px; }

.npc-coord-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.npc-coord-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: #27331f; }
.npc-coord-row input {
  padding: 9px 11px; font-size: 14.5px; border: 1px solid #d9e0d4; border-radius: 6px; width: 100%; box-sizing: border-box;
}
.npc-coord-row input:focus { outline: 2px solid #19616a; outline-offset: 1px; }

.npc-copy-btn {
  align-self: flex-start; padding: 7px 12px; font-size: 12.5px; font-weight: 700; border: 1px solid #d9e0d4;
  border-radius: 6px; background: #fff; color: #19616a; cursor: pointer;
}
.npc-copy-btn:hover { border-color: #19616a; }

.npc-cmd-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; background: #fff; border: 1px solid #d9e0d4; border-radius: 6px;
}
.npc-cmd-row code { font-family: ui-monospace, monospace; font-size: 12.5px; color: #19616a; font-weight: 700; word-break: break-all; }

.npc-link-indicator {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: #5b6b56; padding-top: 30px; white-space: nowrap;
}
.npc-link-indicator .npc-arrow-down, .npc-link-indicator .npc-arrow-up { color: #19616a; }
.npc-y-note { font-weight: 400; font-size: 11px; }

.npc-map-section { margin-bottom: 22px; }
.npc-map-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #27331f; }
.npc-map-hint { margin: 0 0 12px; font-size: 12.5px; color: #5b6b56; }
.npc-map-row { display: flex; gap: 18px; flex-wrap: wrap; }
.npc-map-pane { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.npc-map-label { font-size: 12.5px; font-weight: 700; color: #27331f; }
.npc-map-pane canvas {
  border: 1px solid #d9e0d4; border-radius: 6px; cursor: crosshair; background: #f3f4f8; max-width: 100%;
}
.npc-map-result { margin: 0; font-size: 12.5px; color: #5b6b56; min-height: 1.4em; }
.npc-map-result.npc-inside { color: #c0392b; font-weight: 700; }
.npc-map-result.npc-outside { color: #19616a; font-weight: 700; }

.npc-table-wrap { margin-bottom: 22px; }
.npc-table-title { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: #27331f; }
.npc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.npc-table th, .npc-table td { text-align: left; padding: 9px 10px; border: 1px solid #d9e0d4; }
.npc-table th { background: #f3f4f8; color: #27331f; font-weight: 700; }
.npc-table td { color: #27331f; }
.npc-table tbody tr:nth-child(even) td { background: #f3f4f8; }

.npc-prose { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.npc-prose h3 { margin: 14px 0 2px; font-size: 15px; font-weight: 700; color: #27331f; }
.npc-prose h3:first-child { margin-top: 0; }
.npc-prose p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.55; color: #27331f; }
.npc-prose ol { margin: 0 0 6px; padding-left: 20px; font-size: 13.5px; line-height: 1.55; color: #27331f; }
.npc-prose li { margin-bottom: 4px; }

.npc-note { margin-top: 16px; font-size: 13px; color: #5b6b56; }

@media (max-width: 640px) {
  .npc-panels { grid-template-columns: 1fr; }
  .npc-link-indicator { flex-direction: row; padding-top: 0; justify-content: center; gap: 10px; }
  .npc-map-row { flex-direction: column; }
}
