:root {
  color-scheme: light;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #f4f6fb;
  color: #1c2230;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.app-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px;
}

header {
  margin-bottom: 24px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 2.3vw, 2.8rem);
}

p {
  margin: 0;
  color: #556080;
}

.controls {
  display: grid;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #dde3ef;
  border-radius: 18px;
  padding: 18px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

label {
  font-weight: 600;
}

select {
  flex: 1;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #c7d2e3;
  border-radius: 10px;
  background: #fafbff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  background: #3b82f6;
  color: white;
  padding: 12px 18px;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

button:hover {
  background: #2563eb;
}

.status,
.metadata {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dde3ef;
}

.status {
  color: #1f2937;
}

.table-wrapper {
  margin-top: 20px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  min-width: 600px;
}

thead {
  background: #eef4ff;
}

th,
td {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

th {
  font-weight: 700;
}

tbody tr:hover {
  background: #f3f7ff;
}

@media (max-width: 640px) {
  .control-row {
    flex-direction: column;
    align-items: stretch;
  }

  button {
    width: 100%;
  }
}
