:root {
  --green: #08783e;
  --green-dark: #075b31;
  --green-soft: #e7f3eb;
  --ink: #14231a;
  --muted: #64746a;
  --line: #dbe5de;
  --surface: #ffffff;
  --page: #f3f6f4;
  --danger: #c43228;
  --danger-soft: #fff0ee;
  --warning: #946516;
  --warning-soft: #fff7e2;
  --shadow: 0 8px 28px rgba(20, 60, 37, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.brand-name {
  font-size: 17px;
  font-weight: 750;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav-link.active {
  color: var(--green);
  background: var(--green-soft);
  font-weight: 650;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 650;
}

.btn-primary {
  color: #fff;
  background: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  border-color: #b9cec0;
  color: var(--green);
  background: #fff;
}

.btn-danger {
  border-color: #edc0bc;
  color: var(--danger);
  background: #fff;
}

.icon-btn {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--green);
  background: #fff;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

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

.field label {
  color: #35473c;
  font-size: 14px;
  font-weight: 650;
}

.input,
.select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #cad8cf;
  border-radius: 7px;
  outline: none;
  color: var(--ink);
  background: #fff;
}

.input:focus,
.select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 120, 62, 0.1);
}

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

.hidden {
  display: none !important;
}

.status {
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.55;
}

.status-error {
  color: var(--danger);
  background: var(--danger-soft);
}

.status-info {
  color: var(--warning);
  background: var(--warning-soft);
}

.empty {
  padding: 48px 24px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 720px) {
  .shell {
    padding: 16px;
  }

  .top-nav {
    min-height: 58px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 15px;
  }

  .nav-link {
    padding: 8px;
    font-size: 13px;
  }
}
