:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #121933;
  --panel-2: #0f1530;
  --text: #eef2ff;
  --muted: #9aa4c7;
  --line: #243056;
  --accent: #74c0fc;
  --accent-2: #8ce99a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: linear-gradient(180deg, #09101f 0%, #10162d 100%);
  color: var(--text);
}
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}
.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent);
}
h1, h2 { margin: 0; }
.sub { margin: 8px 0 0; color: var(--muted); }
.meta-card, .card {
  background: rgba(18, 25, 51, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.meta-card {
  min-width: 320px;
  padding: 16px;
}
.meta-card div + div { margin-top: 10px; }
.meta-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.meta-card code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--accent-2);
}
.grid.two {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
}
.card {
  padding: 18px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}
label.grow { flex: 1; }
label span, .hint, .results-meta {
  color: var(--muted);
  font-size: 13px;
}
input, select, textarea, button {
  font: inherit;
}
input, select, textarea {
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
}
textarea {
  min-height: 220px;
  resize: vertical;
}
button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #4dabf7, #7c4dff);
  color: white;
  cursor: pointer;
  font-weight: 700;
  align-self: end;
}
button:hover { filter: brightness(1.08); }
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  position: sticky;
  top: 0;
  background: #111933;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
tr:last-child td { border-bottom: 0; }
.muted { color: var(--muted); }
.quote-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
#quoteTotal {
  color: var(--accent-2);
  font-size: 20px;
}
code {
  font-family: ui-monospace, SFMono-Regular, monospace;
}
@media (max-width: 980px) {
  .hero, .grid.two {
    grid-template-columns: 1fr;
    display: grid;
  }
  .meta-card { min-width: 0; }
}
