:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --panel: #ffffff;
  --line: #d9d8d1;
  --text: #202124;
  --muted: #6a6d70;
  --accent: #245b52;
  --accent-strong: #123c36;
  --danger: #9b2f2f;
  --radius: 8px;
  font-family: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: grid;
  gap: 4px;
}

.brand h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 760;
}

.brand span {
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button,
.button {
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 9px 12px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button.secondary,
.button.secondary {
  background: #fff;
  color: var(--accent);
}

.stack {
  display: grid;
  gap: 10px;
}

.list {
  display: grid;
  gap: 8px;
}

.list-row {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.status {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .span-4,
  .span-6,
  .span-8,
  .span-12 {
    grid-column: 1;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
