:root {
  --bg-1: #f6efe7;
  --bg-2: #c8e6dc;
  --ink: #1d2830;
  --panel: #ffffffea;
  --line: #0a7a66;
  --line-2: #d5472f;
  --muted: #5e6d78;
  --accent: #ef6f39;
  --grid: #d7e1e7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: radial-gradient(circle at 20% 15%, #fff7d9 0%, transparent 30%),
    radial-gradient(circle at 80% 10%, #d8f7ff 0%, transparent 30%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px #24453f1a;
  padding: 1rem;
}

.hero {
  padding: 0.25rem 0.25rem 0.75rem;
}

.hero h1 {
  margin: 0.2rem 0 0.25rem;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}

.kicker {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  color: var(--line-2);
  letter-spacing: 0.08em;
  font-size: 0.84rem;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: 1.1rem;
}

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

.controls-header,
.graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  padding: 0.58rem 0.9rem;
  cursor: pointer;
}

button:hover {
  filter: brightness(0.97);
}

button.quiet {
  background: #1f3d49;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #e8eef2;
}

td input {
  width: 100%;
  border: 1px solid #dce5ec;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  font: inherit;
}

td input:focus {
  border-color: #4d9588;
  outline: none;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
}

.row-actions button {
  padding: 0.35rem 0.6rem;
  background: #ebedf0;
  color: #3b4d5a;
  font-size: 0.8rem;
}

.actions {
  margin-top: 0.7rem;
}

.graph-panel canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: #f9fdff;
  border: 1px solid #dde8f0;
}

.analysis ol {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.analysis li {
  margin-bottom: 0.5rem;
  color: #2d3d48;
}

.warn {
  color: #b2442a;
}

@media (max-width: 700px) {
  .shell {
    padding: 1rem 0.8rem 2rem;
  }

  th,
  td {
    padding: 0.45rem 0.35rem;
    font-size: 0.9rem;
  }

  button {
    font-size: 0.88rem;
  }
}
