:root {
  --brand: #19aaa3;
  --brand-dark: #0d8883;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #d8e1e8;
  --surface: #f7fafb;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eef3f5;
}
.container { max-width: 1180px; margin: 0 auto; padding: 36px 22px 70px; }
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.toolbar h1 { margin: 0; font-size: 28px; }
.toolbar p { margin: 4px 0 0; color: var(--muted); }
.card {
  background: #fff;
  border: 1px solid #dde6ea;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 35, 45, .06);
  margin-bottom: 18px;
}
.section-title { margin: 0 0 18px; font-size: 16px; color: var(--brand-dark); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 7px; }
input, textarea, select {
  width: 100%;
  border: 1px solid #cfdbe1;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { resize: vertical; min-height: 82px; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(25,170,163,.18); border-color: var(--brand); }
.items-wrap { overflow-x: auto; }
.items { width: 100%; border-collapse: collapse; min-width: 980px; }
.items th { text-align: left; font-size: 12px; color: #475569; padding: 8px; }
.items td { padding: 7px; vertical-align: top; }
.items input, .items textarea { min-width: 90px; }
.items textarea { min-width: 260px; min-height: 58px; }
.btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-dark { background: #17212b; color: #fff; }
.btn-light { background: #edf4f5; color: #21414b; }
.btn-danger { background: #fff0f0; color: #a22929; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
@media (max-width: 760px) {
  .grid, .grid.three { grid-template-columns: 1fr; }
  .toolbar { align-items: flex-start; flex-direction: column; }
}
