body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: #f7f8fa;
  color: #1f2937;
  margin: 0;
}

h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 18px 0;
  color: #111827;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #111827;
}

h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #111827;
}

.app-container {
  padding: 24px;
  max-width: 1800px;
  margin: 0 auto;
}

.top-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.left-panel {
  flex: 2;
  min-width: 0;
}

.right-panel {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.card-muted {
  background: #fbfbfc;
}

.section-gap {
  margin-top: 20px;
}

.helper-text {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.detail-block {
  line-height: 1.65;
  font-size: 14px;
}

.table-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 14px 10px 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table {
  border-collapse: separate !important;
  border-spacing: 0;
}

.dash-table-container .dash-header {
  background-color: #f3f4f6 !important;
  color: #111827 !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #d1d5db !important;
}

.dash-table-container .dash-cell {
  background-color: #ffffff !important;
  color: #1f2937 !important;
  border-bottom: 1px solid #f0f1f3 !important;
}

.dash-table-container .dash-cell.focused,
.dash-table-container .dash-cell.cell--selected {
  background-color: #eef4ff !important;
  border: 1px solid #93c5fd !important;
}

.js-plotly-plot .plotly .main-svg {
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .top-row {
    flex-direction: column;
  }

  .left-panel,
  .right-panel {
    width: 100%;
  }
}
