body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fa;
  color: #1f2933;
}

.detail-section {
  margin-top: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.detail-section summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
}

.detail-section[open] summary {
  border-bottom: 1px solid #e5e7eb;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.detail-section .detail-grid {
  padding: 12px 14px;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  padding: 22px 32px 14px;
}

.logo {
  height: 80px;
  max-width: 220px;
  object-fit: contain;
}

.brand-strip-img {
  display: block;
  width: 100%;
  height: 16px;
  object-fit: cover;
}

main {
  padding: 32px;
}

.hero h1 {
  margin: 0 0 4px;
  font-size: 30px;
}

.hero p {
  margin: 0;
  color: #667085;
}

.controls-card {
  margin: 24px 0 16px;
  padding: 18px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  display: flex;
  gap: 24px;
  align-items: end;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

input {
  display: block;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #cfd6dd;
  border-radius: 6px;
  font-size: 14px;
}

#search {
  width: 360px;
}

#airline {
  width: 80px;
  text-transform: uppercase;
}

.airline-control {
  display: flex;
  gap: 8px;
}

button, .button-link {
  background: #1d4ed8;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button.secondary {
  background: #475569;
}

#status {
  color: #475569;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  background: white;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  background: #f0f3f6;
  font-weight: 700;
}

tr:hover {
  background: #f9fafb;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow: auto;
  z-index: 10;
}

.hidden {
  display: none;
}

.modal-content {
  background: white;
  width: min(1200px, 96vw);
  border-radius: 12px;
  padding: 28px;
  position: relative;
}

.close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: transparent;
  color: #111827;
  font-size: 30px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.summary-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
}

.summary-label {
  color: #667085;
  font-size: 12px;
}

.summary-value {
  font-size: 22px;
  font-weight: 700;
}

.seatmap-preview {
  margin-top: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  background: #f8fafc;
}

.seatmap-preview img {
  max-width: 100%;
  max-height: 520px;
  display: block;
  margin: 0 auto;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h3 {
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 6px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 20px;
}

.detail-item {
  border-bottom: 1px solid #eef2f7;
  padding: 7px 0;
}

.detail-label {
  color: #667085;
  font-size: 12px;
}

.detail-value {
  font-weight: 500;
  word-break: break-word;
}
