:root {
  color-scheme: light;
  --backend-forest: #163c35;
  --backend-forest-deep: #102f2a;
  --backend-lime: #d8ee78;
  --backend-ink: #1d2c28;
  --backend-muted: #75827d;
  --backend-line: #e2e8e3;
  --backend-surface: #fff;
  --backend-canvas: #f4f6f3;
}

body.backend-site {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--backend-ink);
  background: var(--backend-canvas);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.backend-site *,
.backend-site *::before,
.backend-site *::after {
  box-sizing: border-box;
}

.backend-site a {
  color: #2e7358;
  text-decoration: none;
}

.backend-site a:hover {
  color: var(--backend-forest-deep);
  text-decoration: underline;
}

.backend-site a:focus-visible,
.backend-site button:focus-visible,
.backend-site input:focus-visible,
.backend-site select:focus-visible,
.backend-site textarea:focus-visible {
  outline: 3px solid #a5c966;
  outline-offset: 2px;
}

.backend-site #header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
  padding: 12px max(24px, calc((100vw - 1240px) / 2));
  color: #f6f8f2;
  background: var(--backend-forest);
  border-bottom: 3px solid var(--backend-lime);
}

.backend-site #branding,
.backend-site #user-tools {
  float: none;
  height: auto;
}

.backend-site #site-name {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .01em;
}

.backend-site #site-name a,
.backend-site #site-name a:hover {
  color: #fff;
  text-decoration: none;
}

.backend-site #user-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  color: rgba(239, 245, 239, .76);
  font-size: 12px;
}

.backend-site #user-tools a {
  color: #f6f8f2;
}

.backend-site #user-tools form {
  display: inline-flex;
  margin: 0;
}

.backend-site #user-tools button {
  padding: 6px 11px;
  color: var(--backend-forest);
  border: 1px solid var(--backend-lime);
  border-radius: 4px;
  background: var(--backend-lime);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.backend-site #user-tools button:hover {
  background: #e5f49f;
}

.backend-site .page-frame {
  width: min(1240px, calc(100% - 48px));
  min-height: calc(100vh - 69px);
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.backend-site .breadcrumbs {
  min-height: 45px;
  display: flex;
  align-items: center;
  padding: 8px 0;
  color: var(--backend-muted);
  border-bottom: 1px solid var(--backend-line);
  background: transparent;
  font-size: 12px;
}

.backend-site .breadcrumbs a {
  margin-right: 6px;
}

.backend-site main {
  flex: 1;
  min-width: 0;
  padding: 28px 0 44px;
}

.backend-site main > h1,
.backend-site main > h2:first-child {
  margin: 0 0 20px;
  color: var(--backend-forest);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.backend-site main h2 {
  color: #263e34;
  font-size: 20px;
  line-height: 1.35;
}

.backend-site main table {
  max-width: 100%;
  border-collapse: collapse;
  background: var(--backend-surface);
}

.backend-site main table th,
.backend-site main table td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--backend-line);
  vertical-align: top;
}

.backend-site main table th {
  color: #405249;
  text-align: left;
}

.backend-site main p {
  max-width: 82ch;
  color: #4c5d54;
}

.backend-site .app-grca.module {
  max-width: 100%;
  margin: 18px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--backend-line);
  border-radius: 7px;
  background: var(--backend-surface);
  box-shadow: 0 5px 18px rgba(16, 47, 42, .045);
}

.backend-site .app-grca.module table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: transparent;
}

.backend-site .app-grca.module caption {
  padding: 13px 16px;
  color: var(--backend-forest);
  border-bottom: 1px solid var(--backend-line);
  background: #f8faf8;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.backend-site .app-grca.module th,
.backend-site .app-grca.module td {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #edf0ed;
  text-align: left;
  vertical-align: top;
}

.backend-site .app-grca.module thead th {
  color: #53635a;
  background: #f8faf8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.backend-site .app-grca.module tbody tr:last-child th,
.backend-site .app-grca.module tbody tr:last-child td {
  border-bottom: 0;
}

.backend-site .app-grca.module tbody tr:hover {
  background: #f8faf8;
}

.backend-site .app-grca.module ul {
  margin: 0;
  padding-left: 19px;
}

.backend-site form.backend-form,
.backend-site main > form {
  width: min(560px, 100%);
  margin: 18px 0 26px;
  padding: 22px;
  border: 1px solid var(--backend-line);
  border-radius: 7px;
  background: var(--backend-surface);
  box-shadow: 0 5px 18px rgba(16, 47, 42, .045);
}

.backend-site form p {
  margin: 0 0 14px;
}

.backend-site form.backend-form table {
  width: 100%;
  margin: 0 0 14px;
  background: transparent;
}

.backend-site form.backend-form th,
.backend-site form.backend-form td {
  padding: 7px 5px;
  border: 0;
  vertical-align: top;
}

.backend-site form.backend-form th {
  width: 115px;
}

.backend-site .errorlist {
  margin: 0 0 12px;
  padding: 9px 12px;
  color: #8f342b;
  border-left: 3px solid #c64f42;
  background: #fff2ef;
  list-style: none;
}

.backend-site .helptext {
  display: block;
  margin-top: 4px;
  color: var(--backend-muted);
  font-size: 12px;
}

.backend-site form label {
  display: inline-block;
  margin-bottom: 5px;
  color: #33443c;
  font-size: 12px;
  font-weight: 700;
}

.backend-site input,
.backend-site select,
.backend-site textarea {
  max-width: 100%;
  padding: 9px 11px;
  color: var(--backend-ink);
  border: 1px solid #dbe2dc;
  border-radius: 4px;
  background: #fff;
  font: inherit;
}

.backend-site input[type="text"],
.backend-site input[type="password"],
.backend-site input[type="email"],
.backend-site input[type="search"],
.backend-site form p input {
  width: min(100%, 430px);
}

.backend-site input[type="submit"],
.backend-site button,
.backend-site form button {
  padding: 9px 16px;
  color: #fff;
  border: 1px solid var(--backend-forest);
  border-radius: 4px;
  background: var(--backend-forest);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.backend-site input[type="submit"]:hover,
.backend-site button:hover,
.backend-site form button:hover {
  background: var(--backend-forest-deep);
}

.backend-site .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 17px 0 22px;
  color: var(--backend-muted);
  border-top: 1px solid var(--backend-line);
  font-size: 12px;
}

.backend-site .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.backend-site .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .backend-site #header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px;
  }

  .backend-site #user-tools {
    justify-content: flex-start;
    gap: 8px 14px;
  }

  .backend-site .page-frame {
    width: calc(100% - 32px);
  }

  .backend-site main {
    padding-top: 22px;
  }

  .backend-site .app-grca.module table {
    min-width: 620px;
  }

  .backend-site form.backend-form,
  .backend-site main > form {
    padding: 17px;
  }
}
