:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #182e2b;
  background: #f6f8f6;
  font-synthesis: none;
  --green: #1a5c47;
  --muted: #687972;
  --line: #dfe7e2;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}
.language-switch select {
  max-width: 140px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #182e2b;
  padding: 6px 8px;
}
.auth-form > .language-switch {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.loading {
  padding: 3rem;
}
.layout {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #143d30;
  margin: 0 12px 40px;
}
.brand-mark {
  background: #1a5c47;
  color: #fff;
  width: 32px;
  height: 36px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
}
.brand strong {
  font-size: 24px;
  letter-spacing: -1px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  background: transparent;
  color: #53675d;
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 14px;
}
.nav button.active {
  background: #eaf3ed;
  color: #174e3c;
  font-weight: 650;
}
.nav button:hover {
  background: #f0f5f1;
}
.nav-icon {
  font-size: 17px;
  width: 20px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  padding: 20px 12px 0;
}
.sidebar-bottom a {
  display: block;
  margin: 12px 0;
  text-decoration: none;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar span {
  color: var(--muted);
  font-size: 13px;
}
.account {
  display: flex;
  align-items: center;
  gap: 16px;
}
.account strong {
  font-size: 13px;
}
.text-button {
  background: none;
  border: 0;
  color: var(--green);
  padding: 5px;
  font-size: 13px;
}
.content {
  max-width: 1450px;
  padding: 40px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 0 0 10px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 8px;
}
h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.button {
  border: 1px solid var(--line);
  background: white;
  padding: 10px 15px;
  border-radius: 6px;
  color: #28493b;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.button.danger {
  color: #a34231;
}
.button.small {
  padding: 6px 10px;
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.metric .label {
  font-size: 12px;
  color: var(--muted);
}
.metric strong {
  font-size: 34px;
  font-weight: 600;
  display: block;
  letter-spacing: -1px;
  margin: 10px 0;
}
.metric .foot {
  font-size: 11px;
  color: var(--muted);
}
.metric.featured {
  background: #1c503e;
  color: #fff;
  border-color: #1c503e;
}
.metric.featured .label,
.metric.featured .foot {
  color: #c0d3c6;
}
.two-columns {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
}
.two-columns > * {
  min-width: 0;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-body {
  padding: 22px;
}
.scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #6c7a73;
  background: #fafbf9;
  padding: 13px 20px;
  font-weight: 650;
  white-space: nowrap;
}
td {
  padding: 17px 20px;
  border-top: 1px solid #eef2ed;
  vertical-align: middle;
}
td strong {
  display: block;
  font-weight: 600;
  color: #253f32;
  font-size: 13px;
}
td small {
  color: var(--muted);
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
.empty {
  text-align: center;
  padding: 44px 20px;
  color: var(--muted);
  font-size: 13px;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  background: #eef2ef;
  color: #54685c;
}
.badge.good {
  background: #e8f4eb;
  color: #22613d;
}
.badge.wait {
  background: #fbf1d9;
  color: #8c6a21;
}
.badge.bad {
  background: #fbe8e4;
  color: #a13d2a;
}
.status-note {
  padding: 14px 18px;
  border: 1px solid #e7dfc5;
  background: #fffcf2;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: #7b693c;
  margin-bottom: 22px;
}
.progress {
  height: 5px;
  background: #eaf0eb;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 7px;
  min-width: 100px;
}
.progress span {
  display: block;
  height: 100%;
  background: #3b8860;
}
.quick-list {
  display: grid;
  gap: 16px;
}
.quick-list button {
  display: block;
  text-align: left;
  background: #f7f9f6;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px 17px;
  color: #254d3d;
}
.quick-list strong {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}
.quick-list small {
  color: var(--muted);
  font-size: 11px;
}
.search {
  width: 230px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
}
.table-note {
  padding: 15px 22px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  width: min(570px, calc(100% - 32px));
  padding: 28px;
  color: #183a2a;
  box-shadow: 0 24px 90px #0d241f35;
}
dialog::backdrop {
  background: #19312766;
}
dialog h2 {
  margin-bottom: 8px;
}
.form {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}
.form label {
  font-size: 12px;
  font-weight: 600;
  display: grid;
  gap: 6px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid #cfdad1;
  border-radius: 5px;
  background: #fff;
  font-weight: 400;
  color: #243e2c;
}
.form input:focus,
.form select:focus {
  border-color: var(--green);
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form .help {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}
.form .form-error {
  font-size: 12px;
  color: #a23f31;
  line-height: 1.5;
}
.form .actions {
  justify-content: flex-end;
  margin-top: 10px;
}
.key-output {
  word-break: break-all;
  font:
    13px ui-monospace,
    monospace;
  background: #f1f5f0;
  padding: 16px;
  border-radius: 5px;
  user-select: all;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  padding: 12vh 8vw;
  background: #173e30;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-story h1 {
  font-size: 52px;
  max-width: 500px;
  line-height: 1.13;
  letter-spacing: -2px;
}
.auth-story p {
  color: #b9cfc0;
  max-width: 430px;
  margin-top: 20px;
}
.auth-story .eyebrow {
  color: #abc6b4;
}
.auth-story .brand {
  color: white;
  margin: 0 0 60px;
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form {
  width: min(380px, 100%);
}
.auth-form h2 {
  font-size: 26px;
}
.auth-form .button {
  padding: 13px;
}
.auth-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
}
#notice {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 14px 20px;
  background: #163e2e;
  color: #fff;
  box-shadow: 0 8px 24px #0002;
  border-radius: 7px;
  max-width: 420px;
  font-size: 13px;
  display: none;
  z-index: 20;
}
#notice.visible {
  display: block;
}
.mobile-brand {
  display: none;
}
.rule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rule-grid input {
  max-width: 100%;
}
@media (max-width: 1100px) {
  .content {
    padding: 28px;
  }
  .layout {
    grid-template-columns: 195px 1fr;
  }
  .sidebar {
    padding: 28px 10px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 28px;
  }
}
@media (max-width: 720px) {
  .account {
    gap: 7px;
  }
  .account .language-switch label {
    display: none;
  }
  .account .language-switch select {
    max-width: 108px;
  }
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    margin: 0 0 14px;
  }
  .nav {
    display: flex;
    overflow: auto;
    gap: 3px;
  }
  .nav button {
    padding: 9px 12px;
    white-space: nowrap;
  }
  .nav-icon {
    display: none;
  }
  .sidebar-bottom {
    display: none;
  }
  .topbar {
    height: 60px;
    padding: 0 18px;
  }
  .account strong {
    display: none;
  }
  .content {
    padding: 24px 16px;
  }
  .heading {
    flex-direction: column;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 27px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px;
  }
  .metric strong {
    font-size: 30px;
  }
  .panel-head {
    padding: 16px;
    flex-wrap: wrap;
  }
  td,
  th {
    padding: 13px 16px;
  }
  .auth-shell {
    display: block;
  }
  .auth-story {
    padding: 35px 25px;
  }
  .auth-story .brand {
    margin-bottom: 25px;
  }
  .auth-story h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .auth-story p {
    display: none;
  }
  .auth-form-wrap {
    padding: 30px 22px;
  }
  .form .row {
    grid-template-columns: 1fr;
  }
  .search {
    width: 100%;
  }
  .topbar > span {
    max-width: 150px;
  }
  #notice {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
