.dash-panel {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 5%;
}
.dash-form label {
  display: block;
  font-weight: 700;
  margin-top: 12px;
  font-size: 0.9rem;
}
.dash-form input[type='text'] {
  width: 100%;
  max-width: 280px;
  padding: 10px 12px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
button.btn {
  margin-top: 16px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: #2d5a27;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
button.btn.secondary {
  background: #555;
  margin-top: 8px;
}
button.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.msg {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #eef6ee;
  color: #1a3d18;
  font-size: 0.9rem;
}
.msg.err {
  background: #fdeaea;
  color: #7a1e1e;
}
.hidden {
  display: none !important;
}
.dash-session-line {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}
.dash-protected {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.dash-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
}
.dash-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.dash-table-wrap th,
.dash-table-wrap td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.dash-table-wrap th {
  background: #f4f6f4;
  font-weight: 700;
  color: #1a1a1a;
}
.dash-table-wrap tr:last-child td {
  border-bottom: none;
}
.dash-copy-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}
.dash-combined-chart {
  display: block;
  width: 100%;
  height: auto;
}

.dash-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: #333;
}

.dash-chart-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-swatch {
  display: inline-block;
  width: 14px;
  height: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}

.dash-swatch--weight {
  background: #2d5a27;
  height: 5px;
}

.dash-swatch--smm {
  background: #1565c0;
}

.dash-swatch--fat {
  background: #ef6c00;
}

.dash-swatch--inj {
  width: 3px;
  height: 14px;
  background: #7b1fa2;
  opacity: 0.65;
}

.dash-chart-footnote {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

.dash-visual-card {
  margin-top: 10px;
  margin-bottom: 18px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}
.dash-inj-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px;
}
.dash-inj-zone {
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 10px;
  background: #fafafa;
}
.dash-inj-zone.is-recommended {
  border-color: #7f58a6;
  background: #f7f0ff;
}
.dash-inj-zone h3 {
  margin: 0;
  font-size: 0.92rem;
}
.dash-inj-zone p {
  margin: 6px 0 0;
  font-size: 0.83rem;
  color: #4a4a4a;
}
.dash-empty {
  margin: 0;
  font-size: 0.87rem;
  color: #666;
}
.dash-map-rec {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: #4d3e65;
}
.dash-weight-svg {
  width: 100%;
  height: 220px;
  display: block;
}
.dash-weight-caption {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #555;
}
.dash-four-week-summary {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #c8d6c4;
  background: #f4faf3;
  margin-bottom: 14px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.dash-four-week-summary strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.dash-four-week-summary__line {
  font-weight: 600;
  color: #1a2e18;
}

.dash-four-week-summary.dash-summary-alert {
  border-color: #c62828;
  background: #ffebee;
}

.dash-four-week-summary.dash-summary-alert .dash-four-week-summary__line,
.dash-four-week-summary.dash-summary-alert strong {
  color: #b71c1c;
}

.dash-summary-anomaly-note {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.dash-anomaly {
  display: inline-block;
  margin-left: 4px;
  color: #b42318;
  font-weight: 900;
}
@media (max-width: 640px) {
  .dash-inj-map {
    grid-template-columns: 1fr;
  }
}
.dash-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dash-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.dash-modal h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #7a1e1e;
}
.dash-modal p {
  margin: 0 0 16px;
  line-height: 1.6;
}
.dash-nav-row {
  margin-bottom: 12px;
}
.dash-nav-row a {
  color: var(--brand);
  font-weight: 700;
}

/* Centered "고객 데이터 열람하기" landing block: title, intro paragraph, and the
   patient-code entry card. Result tables/charts below stay left-aligned for readability. */
.dash-page-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 8px 0 6px;
  color: var(--brand, #2d5a27);
}
.dash-page-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 16px;
}
.dash-code-entry {
  max-width: 420px;
  margin: 0 auto 24px;
  padding: 20px 22px 18px;
  background: #fff;
  border: 1px solid #e8ebe8;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(45, 90, 39, 0.06);
  text-align: center;
}
.dash-code-entry .meta {
  text-align: center;
}
.dash-code-entry .dash-form label {
  text-align: center;
  margin-top: 4px;
}
.dash-code-entry .dash-form input[type='text'] {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.dash-form__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.dash-form__actions .btn {
  min-width: 120px;
}
