body { font-family: Arial, sans-serif; margin: 0; padding: 0; background: #f3f4f6; color: #111; }
header { padding: 24px; background: #1d4ed8; color: white; }
header h1 { margin: 0 0 8px; font-size: 28px; }
header p { margin: 0; opacity: 0.9; }
.main { max-width: 1200px; margin: 0 auto; padding: 24px; }
section { padding: 24px; margin: 0 auto; max-width: 1200px; background: white; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); margin-bottom: 16px; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; background: #fff; }
.card h3 { margin: 0 0 8px; font-size: 16px; color: #374151; }
.card p { margin: 0; font-size: 24px; font-weight: 700; }
.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  align-items: center;
  padding: 18px 24px 18px;
  margin: 0 auto 16px;
  max-width: 1160px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.controls label { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.controls select, .controls input, .controls button { padding: 8px 12px; font-size: 14px; border: 1px solid #d1d5db; border-radius: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #e5e7eb; }
th { background: #f9fafb; }
tr:hover { background: #f3f4f6; }
.diff-list { margin: 4px 0 0; padding-left: 18px; }
.diff-list li { font-size: 13px; }
#changeLogControls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
#changes { max-height: 360px; overflow: auto; padding-right: 4px; }
.change-event { padding: 12px; border-bottom: 1px solid #e5e7eb; }
.change-event:last-child { border-bottom: none; }
.status { font-size: 14px; color: #6b7280; margin-top: 4px; }
canvas { width: 100%; max-width: 100%; border: 1px solid #e5e7eb; border-radius: 12px; }
#map { border-radius: 12px; }
.star-button { background: none; border: none; font-size: 18px; cursor: pointer; color: #9ca3af; }
.star-button.favorited { color: gold; }
.hidden { display: none !important; }
#priceHistoryPanel { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.55); padding: 24px; }
.panel { width: 100%; max-width: 920px; max-height: 90vh; overflow: auto; padding: 24px; border: 1px solid #e5e7eb; border-radius: 18px; background: #ffffff; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18); }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.small-button { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; background: white; cursor: pointer; }
.histogram { display: grid; gap: 12px; margin-top: 16px; }
.histogram-bar { display: inline-flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 8px 12px; background: #eff6ff; border-radius: 999px; font-size: 13px; color: #1d4ed8; }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th, .history-table td { padding: 8px 10px; border: 1px solid #e5e7eb; }
.history-table th { background: #f9fafb; }
