:root {
  color-scheme: light;
  --bg: #f6f1ea;
  --surface: #ffffff;
  --surface-2: #f0ece6;
  --primary: #1f4b7f;
  --primary-dark: #16395f;
  --accent: #c58d3a;
  --text: #1c1a17;
  --muted: #6b6760;
  --border: #e1dbd2;
  --shadow: 0 18px 40px rgba(31, 75, 127, 0.12);
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #f7e4c4 0%, var(--bg) 40%, #f3f0e9 100%);
  color: var(--text);
}

.app {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 24px 80px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.4px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

button {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
}

button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

button.secondary {
  background: var(--surface-2);
  color: var(--text);
}

.panel {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.panel-header h2 {
  margin: 0;
}

.panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

input {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
}

.actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.status {
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  text-align: left;
  box-shadow: var(--shadow);
}

.metric {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.table {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.table-row {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  font-size: 14px;
}

.table-row strong {
  font-weight: 600;
}

@media (max-width: 900px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
