:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #202f38;
  background: #f4f5f3;
  font-size: 14px;
  font-synthesis: none;
  --ink: #173b38;
  --muted: #77857f;
  --line: #dfe5df;
  --accent: #bdaa79;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  padding: 10px 15px;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  transition: 0.15s;
}
button:hover {
  border-color: #789d91;
  background: #f2f8f4;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.primary:hover {
  background: #24544c;
  color: white;
}
.danger {
  color: #a73434;
  background: #fff5f5;
}
input,
select,
textarea {
  border: 1px solid #ced8d1;
  background: #fff;
  border-radius: 7px;
  padding: 11px 12px;
  min-width: 0;
  width: 100%;
  color: #243830;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b4d2bf;
  outline-offset: 1px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 120px;
}
label {
  display: grid;
  gap: 7px;
  font-weight: 600;
  font-size: 12px;
  color: #53685b;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #174c3d;
}
a {
  color: #245c53;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  font-weight: 650;
  margin-bottom: 8px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
}
.muted,
small {
  color: var(--muted);
  font-weight: 400;
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #14362f;
  color: #d8e5df;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.brand {
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 750;
  padding: 0 12px;
  color: white;
}
.brand span {
  color: #c5b484;
}
.brand small {
  display: block;
  letter-spacing: 2px;
  font-size: 9px;
  margin-top: 7px;
  color: #90b1a3;
  text-transform: uppercase;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav button {
  border: 0;
  text-align: left;
  color: #bed2c8;
  background: transparent;
  font-weight: 500;
  padding: 11px 12px;
  font-size: 13px;
}
.sidebar nav button.active {
  background: #2a4c41;
  color: white;
  border-left: 3px solid #c5b484;
  padding-left: 9px;
}
.sidebar .account {
  margin-top: auto;
  padding: 12px;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  color: #a7c0b4;
}
.sidebar .account button {
  margin-top: 10px;
  background: transparent;
  color: white;
  border-color: #527669;
}
.main {
  padding: 28px 38px;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.topbar small {
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-size: 10px;
}
.topbar select {
  max-width: 250px;
}
.heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 0 0 24px;
}
.heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px #10291f03;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  padding: 21px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-top: 3px solid #bbaa78;
}
.metric b {
  display: block;
  font-size: 28px;
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: -1px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.row > * {
  flex: 0 1 auto;
}
.row input {
  flex: 1;
  min-width: 180px;
}
.row select {
  width: auto;
  max-width: 260px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.full {
  grid-column: 1/-1;
}
.form {
  display: grid;
  gap: 16px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.filters {
  margin-bottom: 16px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 650;
  color: #819288;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 15px 10px;
  border-bottom: 1px solid #edf0eb;
  vertical-align: middle;
  line-height: 1.5;
}
tbody tr:hover {
  background: #fbfcf9;
}
td.title {
  max-width: 380px;
  min-width: 200px;
}
td.title strong {
  display: block;
  font-size: 13px;
  color: #25433a;
  font-weight: 600;
}
td.title small {
  display: block;
  margin-top: 5px;
}
.badge {
  display: inline-block;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #eef2ed;
  color: #566b5c;
  white-space: nowrap;
}
.badge.done,
.badge.ready,
.badge.published,
.badge.met {
  background: #e4f3e9;
  color: #287145;
}
.badge.failed,
.badge.rejected,
.badge.violation {
  background: #fae9e6;
  color: #a34f42;
}
.badge.running,
.badge.queued {
  background: #f8f1dd;
  color: #987834;
}
.badge.uncertain,
.badge.needs_attention {
  background: #fce5cc;
  color: #a56f32;
}
.empty {
  padding: 50px 20px;
  text-align: center;
  color: #8a958e;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
}
.icon-button {
  padding: 6px 10px;
  font-size: 12px;
}
.subnav {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.subnav button {
  font-size: 12px;
  padding: 8px 12px;
}
.subnav button.active {
  background: #e0eae1;
  border-color: #87a892;
}
.check-list {
  display: grid;
  gap: 7px;
  max-height: 260px;
  overflow: auto;
  background: #f7f9f5;
  padding: 12px;
  border-radius: 8px;
}
.check-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
}
.notice {
  border-left: 3px solid #bbaa78;
  background: #faf7ee;
  padding: 14px 17px;
  color: #746441;
  line-height: 1.6;
  font-size: 12px;
}
.error {
  border-left: 3px solid #b65b4a;
  background: #fff4f0;
  color: #924e41;
  padding: 14px;
}
.login {
  width: min(450px, 90vw);
  margin: 12vh auto;
}
.login .brand {
  color: #173b38;
  padding: 0;
  margin-bottom: 28px;
}
.login .card {
  padding: 32px;
}
dialog {
  width: min(1000px, 94vw);
  max-height: 92vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 30px 100px #031b1a40;
  color: inherit;
}
dialog::backdrop {
  background: #0c272c80;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.dialog-head h2 {
  margin: 0;
}
.section-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fafbf9;
  padding: 18px;
  border-radius: 9px;
  line-height: 1.7;
  max-height: 330px;
  overflow: auto;
  font-size: 13px;
}
.details-section {
  margin-top: 20px;
}
.details-section .row {
  justify-content: space-between;
  margin-bottom: 8px;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font:
    12px/1.65 ui-monospace,
    monospace;
  max-height: 300px;
  overflow: auto;
  background: #f5f7f3;
  padding: 14px;
  border-radius: 8px;
}
#toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #153c30;
  color: white;
  padding: 14px 20px;
  border-radius: 9px;
  box-shadow: 0 5px 30px #18382f30;
  display: none;
  z-index: 100;
}
.loading {
  padding: 60px;
  text-align: center;
  color: #779084;
}
.public-story {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  line-height: 1.8;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}
progress {
  width: 100%;
  accent-color: #376749;
}
.inline-status {
  font-size: 11px;
  color: #668174;
}
.profile-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 10px;
}
.table-wrap button {
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .main {
    padding: 22px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .sidebar {
    padding: 22px 10px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }
  .brand {
    font-size: 22px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 6px;
  }
  .sidebar nav button {
    white-space: nowrap;
  }
  .sidebar .account {
    display: none;
  }
  .sidebar {
    gap: 15px;
  }
  .main {
    padding: 18px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    margin-bottom: 20px;
  }
  .heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 24px;
  }
  .card {
    padding: 16px;
  }
  dialog {
    padding: 18px;
  }
  .topbar small {
    font-size: 9px;
  }
  .row select {
    max-width: 100%;
  }
}
