:root {
  color-scheme: light;
  --ink: #263b32;
  --muted: #687c72;
  --green: #286c4f;
  --line: #e1e8e2;
  --bg: #f4f6f2;
  --soft: #edf3ec;
  --red: #a4473c;
  --amber: #946522;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  white-space: nowrap;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:hover:not(:disabled) {
  filter: brightness(0.95);
}
:focus-visible {
  outline: 3px solid #90b9a2;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.7px;
  line-height: 1.4;
  font-weight: 650;
  margin-bottom: 9px;
}
h2 {
  font-size: 16px;
  margin-bottom: 0;
}
h3 {
  font-size: 14px;
  margin-bottom: 7px;
}
small {
  font-size: 12px;
}
.muted,
.field-help,
.footnote {
  color: var(--muted);
}
.primary {
  background: var(--green);
  color: white;
}
.secondary {
  background: white;
  color: var(--ink);
  border-color: #d7e1d8;
}
.quiet {
  background: transparent;
  color: var(--muted);
}
.danger {
  color: var(--red);
}
.compact {
  padding: 7px 12px;
  font-size: 12px;
}
.full {
  width: 100%;
  margin-top: 25px;
}
.eyebrow {
  font-size: 10px;
  color: var(--green);
  letter-spacing: 2px;
  font-weight: 650;
  margin-bottom: 10px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px 17px 17px 4px;
  background: var(--green);
  color: white;
  font-size: 28px;
  font-weight: 600;
}
.brand-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 12px 12px 12px 3px;
  font-size: 22px;
  flex-shrink: 0;
}
.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at 0 0, #e0ecdf, transparent 60%);
}
.login-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  width: min(100%, 450px);
  box-shadow: 0 20px 80px #1a433108;
}
.login-card .brand-mark {
  margin-bottom: 28px;
}
.login-card h1 {
  font-size: 25px;
}
.tip {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
}
code {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
  font-size: 12px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin: 18px 0 7px;
}
input:not([type="checkbox"]),
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d6dfd7;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
}
input::placeholder {
  color: #84928a;
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.error {
  color: var(--red);
  font-size: 13px;
  margin-top: 12px;
}
.error:empty {
  display: none;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 220px;
  flex-shrink: 0;
  padding: 30px 17px 22px;
  background: #fcfdfb;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  margin: 0 13px 42px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 400;
  color: var(--muted);
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: #809086;
  margin: 0 15px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  padding: 11px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: #5f7569;
  font-size: 13px;
}
.nav-item > span {
  font-size: 20px;
  line-height: 1;
  width: 20px;
  text-align: center;
  font-weight: 400;
}
.nav-item.active {
  background: #e9f1e8;
  color: #265e42;
  font-weight: 650;
}
.sidebar-footer {
  margin: auto 13px 0;
  color: var(--muted);
  font-size: 11px;
}
.sidebar-footer p {
  margin: 13px 0 0;
  color: #85948a;
}
.environment {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 8px;
}
.workspace {
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 71px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fcfdfb;
  padding: 0 36px;
  font-size: 12px;
  gap: 12px;
}
.separator {
  padding: 0 13px;
  color: #b1bdb3;
}
.topbar-actions {
  display: flex;
  gap: 9px;
}
.content {
  max-width: 1500px;
  margin: auto;
  padding: 34px 36px 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}
.page-heading p:last-child {
  margin-bottom: 0;
  font-size: 13px;
  color: var(--muted);
}
.content-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #7d8c82;
  font-size: 11px;
  padding: 27px 0;
}
.notification {
  border: 1px solid #cddfcd;
  background: #edf5eb;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #376345;
}
.notification.failure {
  background: #fff1ec;
  border-color: #ebd4ca;
  color: var(--red);
}
.notice {
  border: 1px solid var(--line);
  background: #f8faf6;
  padding: 14px 17px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 20px;
}
.notice.warning {
  background: #fbf7ee;
  border-color: #e9dfc9;
  color: #806025;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}
.stat {
  display: block;
  background: white;
  border: 1px solid var(--line);
  padding: 20px 22px;
  border-radius: 11px;
  text-decoration: none;
  color: var(--ink);
}
.stat > span {
  font-size: 12px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font-weight: 550;
  font-size: 32px;
  line-height: 1.65;
}
.stat small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.stat.accent {
  background: #edf4ea;
  border-color: #d5e3d0;
}
.columns {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  min-width: 0;
  margin-bottom: 20px;
}
.columns .panel {
  margin-bottom: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
}
.panel-heading small {
  color: var(--muted);
}
.panel-body {
  padding: 20px 22px;
}
.panel-body.flush {
  padding: 0;
}
.issue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.issue:first-child {
  padding-top: 0;
}
.issue:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.issue p {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0 0;
}
.issue > a {
  flex-shrink: 0;
  font-size: 12px;
}
.definition {
  display: grid;
  grid-template-columns: 130px 1fr;
  margin: 0;
  gap: 13px;
  font-size: 13px;
}
.definition dt {
  color: var(--muted);
}
.definition dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.pill {
  display: inline-block;
  padding: 3px 9px;
  font-size: 11px;
  border-radius: 5px;
  color: #426b45;
  background: #edf4ea;
  white-space: nowrap;
}
.pill.muted {
  background: #f0f3ef;
  color: #6e7b72;
}
.pill.warning {
  background: #faf1df;
  color: #886020;
}
.pill.danger {
  background: #fbeee9;
  color: #a34a3e;
}
.badge {
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: #f9fbf7;
  padding: 12px 20px;
}
td {
  font-size: 12px;
  border-top: 1px solid #eaf0e8;
  padding: 17px 20px;
  vertical-align: top;
}
td strong,
td > a {
  font-size: 13px;
}
td strong,
td small {
  display: block;
}
td small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
td code {
  display: block;
  max-width: 280px;
  white-space: normal;
}
td .actions {
  justify-content: flex-start;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.row-action {
  background: transparent;
  color: var(--green);
  padding: 4px 6px;
  font-size: 12px;
}
.row-action.danger {
  color: var(--red);
}
.empty {
  padding: 38px 22px;
  text-align: center;
}
.empty-symbol {
  display: block;
  font-size: 30px;
  color: #82a184;
  margin-bottom: 10px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 20px;
}
.empty p:last-child {
  margin-bottom: 0;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 17px 22px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 340px;
}
.toolbar select {
  width: auto;
  max-width: 200px;
}
.toolbar label {
  margin: 0;
}
.toolbar button {
  padding: 9px 15px;
}
.pagination {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.tabs a {
  text-decoration: none;
  color: var(--muted);
  padding: 0 2px 12px;
  font-size: 13px;
}
.tabs a.active {
  border-bottom: 2px solid var(--green);
  color: var(--green);
  font-weight: 600;
}
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 12px;
}
.footnote {
  font-size: 11px;
  margin: 10px 0 0;
}
.loading {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.relationship-card {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.relationship-card:first-child {
  padding-top: 0;
}
.relationship-card:last-child {
  border: 0;
  padding-bottom: 0;
}
.relationship-card p {
  margin-bottom: 7px;
  font-size: 13px;
}
.relationship-card .definition {
  margin-top: 12px;
}
.technical {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.technical summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}
.technical .definition {
  margin-top: 15px;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(180px, 1fr);
  gap: 25px;
  align-items: start;
}
.settings-aside {
  color: var(--muted);
  font-size: 12px;
  padding: 6px 4px;
}
.settings-aside h3 {
  color: var(--ink);
}
.check-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 5px 0 12px;
}
.check-row small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}
.input-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.field-help {
  font-size: 12px;
  margin: 8px 0 0;
}
.settings-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.form-section + .form-section {
  margin-top: 27px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.draft-label {
  color: var(--amber);
  font-size: 12px;
}
.step-list {
  padding-left: 19px;
  color: var(--muted);
  font-size: 13px;
}
.step-list li {
  margin-bottom: 11px;
}
dialog {
  width: min(520px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  color: var(--ink);
  box-shadow: 0 20px 100px #263c3229;
}
dialog::backdrop {
  background: #233a3255;
  backdrop-filter: blur(2px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 23px;
}
@media (max-width: 1150px) {
  .sidebar {
    width: 192px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .content {
    padding: 28px 24px 0;
  }
  .topbar {
    padding: 0 24px;
  }
  .stat {
    padding: 17px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-aside {
    display: none;
  }
}
@media (max-width: 720px) {
  .app-shell {
    flex-direction: column;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    margin: 0 0 18px;
    font-size: 19px;
  }
  .brand small {
    display: inline;
    margin-left: 9px;
    letter-spacing: 1px;
  }
  .nav-label,
  .sidebar-footer {
    display: none;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .nav-item {
    padding: 9px 7px;
    gap: 6px;
    font-size: 12px;
    margin: 0;
    justify-content: center;
    white-space: nowrap;
  }
  .nav-item > span {
    font-size: 17px;
    width: 17px;
  }
  .topbar {
    height: auto;
    min-height: 57px;
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .topbar-actions {
    gap: 3px;
  }
  .topbar button {
    font-size: 11px;
    padding: 6px 8px;
  }
  .content {
    padding: 23px 16px 0;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p:last-child {
    font-size: 12px;
  }
  .page-heading > .primary {
    padding: 9px 12px;
    font-size: 12px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat {
    padding: 14px 16px;
  }
  .stat strong {
    font-size: 29px;
  }
  .stat small {
    font-size: 10px;
  }
  .panel-heading,
  .panel-body {
    padding: 17px;
  }
  .toolbar {
    padding: 15px;
    gap: 8px;
  }
  .toolbar input {
    flex: 1;
    max-width: none;
    min-width: 130px;
  }
  .toolbar select {
    max-width: 130px;
  }
  .toolbar button {
    padding: 9px 12px;
  }
  .columns {
    gap: 16px;
  }
  .definition {
    grid-template-columns: 100px 1fr;
    gap: 12px;
  }
  .content-footer {
    font-size: 10px;
    padding: 23px 3px;
  }
  .pagination {
    padding: 14px 15px;
    flex-wrap: wrap;
  }
  .pagination .actions {
    margin-left: auto;
  }
  td,
  th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .settings-actions {
    align-items: flex-start;
  }
  .settings-actions > .actions {
    justify-content: flex-end;
  }
  .login-card {
    padding: 30px 24px;
  }
  .login-card h1 {
    font-size: 23px;
  }
  .notice {
    padding: 12px 14px;
  }
  .tabs {
    gap: 20px;
  }
  .issue {
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.15s,
      border-color 0.15s;
  }
}
