@charset "UTF-8";
:root {
  color-scheme: light;
  --ink: #16342e;
  --muted: #526c62;
  --teal: #086752;
  --line: #d6e2db;
  --soft: #e7f3ec;
  --canvas: #f6f9f7;
  --paper: #fff;
  --shadow: 0 20px 70px -36px #163f3559;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select,
summary {
  touch-action: manipulation;
}
button,
summary,
select {
  cursor: pointer;
}
a {
  color: var(--teal);
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #50a58f;
  outline-offset: 2px;
}
button,
.secondary,
.plain {
  transition:
    background 0.14s,
    border-color 0.14s,
    transform 0.14s;
}
.glyph {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.16;
}
h1 {
  font-size: clamp(1.8rem, 2.7vw, 2.65rem);
  letter-spacing: -0.055em;
  font-weight: 650;
}
h2 {
  font-size: 1.38rem;
  letter-spacing: -0.035em;
  font-weight: 650;
}
h3 {
  font-size: 1.03rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}
.icon-btn,
.plain {
  border: 0;
  background: transparent;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: #4d675c;
}
.icon-btn:hover,
.plain:hover {
  background: #e5f0e9;
}
.primary,
.secondary,
.text-action {
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}
.primary {
  background: var(--teal);
  color: white;
  box-shadow: inset 0 1px 0 #ffffff19;
}
.primary:hover {
  background: #075341;
}
.secondary {
  background: #fff;
  color: #25453a;
  border-color: var(--line);
}
.secondary:hover,
.text-action:hover {
  background: #eef6f0;
  border-color: #a6c6b6;
}
.text-action {
  color: var(--teal);
  background: transparent;
}
.plain {
  gap: 9px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.875rem;
}
.error {
  background: #fff1eb;
  color: #923e26;
  border: 1px solid #ebc8ba;
  border-radius: 7px;
  font-size: 0.875rem;
  padding: 10px 13px;
  margin: 12px 0;
}
.error a {
  text-decoration: underline;
}
.dialog {
  border: 1px solid #c4d7c9;
  border-radius: 12px;
  width: min(570px, calc(100% - 24px));
  max-height: 88dvh;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 90px #062e2040;
}
.dialog::backdrop {
  background: #102c2345;
  backdrop-filter: blur(2px);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 19px 22px 15px;
  background: #f8fbf8;
}
.dialog-heading h2 {
  font-size: 1.4rem;
}
.dialog-heading p,
.field-hint {
  font-size: 0.81rem;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}
.dialog-body {
  padding: 18px 22px;
  overflow: auto;
}
.dialog-body > label,
.form-grid label {
  display: block;
  line-height: 1.45;
}
.dialog-body > label + label,
.dialog-body h3 {
  margin-top: 14px;
}
.dialog-body h3 {
  margin-bottom: 7px;
}
.dialog-body label b {
  color: #467a55;
}
.form-grid,
.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.dialog input[type="checkbox"] {
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
  flex: none;
}
.checks {
  margin-top: 10px;
  gap: 6px;
}
.checks label,
.check-line,
.grant-list label,
.grant-list label > span {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.checks label {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
}
.checks img,
.grant-list img,
.search-results img {
  height: 20px;
  width: 20px;
  object-fit: contain;
}
.grant-list label {
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #e4ece5;
}
.dialog-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #f6faf6;
  border-top: 1px solid var(--line);
  padding: 12px 22px;
}
