:root {
  font-family:
    Inter,
    Segoe UI,
    system-ui,
    sans-serif;
  color: #17352c;
  background: #f4f7f5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  padding: 11px 17px;
  font-weight: 650;
  background: #087e61;
  color: white;
}
button:hover {
  filter: brightness(0.96);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: #e8f3ee;
  color: #156b51;
}
.danger {
  background: #fff0ec;
  color: #ad4335;
}
.small {
  padding: 8px 12px;
  font-size: 12px;
}
.muted,
small {
  color: #72867f;
}
small {
  font-size: 12px;
}
a {
  color: #087e61;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.7;
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #103e30;
  color: #ebf7f0;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 35px;
}
.logo {
  font-size: 19px;
  letter-spacing: -0.5px;
  font-weight: 750;
  line-height: 1.45;
}
.logo b {
  display: inline-flex;
  background: #36b688;
  color: #103e30;
  border-radius: 12px;
  padding: 10px;
  margin-right: 8px;
}
.sidebar small {
  color: #9bbeb0;
}
.sidebar nav {
  display: grid;
  gap: 9px;
}
.sidebar nav button {
  background: transparent;
  color: #b4d0c3;
  text-align: left;
  padding: 14px;
}
.sidebar nav button.active {
  background: #245d48;
  color: #fff;
}
.sidebar footer {
  margin-top: auto;
  overflow-wrap: anywhere;
}
.main {
  padding: 34px 42px;
  max-width: 1500px;
  width: 100%;
}
.top,
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top {
  justify-content: space-between;
  margin-bottom: 28px;
}
.top p {
  margin-top: 7px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: #e8f5ed;
  border-radius: 20px;
  color: #16704f;
  font-size: 12px;
  white-space: nowrap;
}
.status:before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.status.off {
  color: #b16a20;
  background: #fff2dc;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 28px;
}
.stat,
.card {
  background: #fff;
  border: 1px solid #e0e9e2;
  border-radius: 16px;
  padding: 22px;
}
.stat strong {
  display: block;
  font-size: 29px;
  margin-top: 9px;
}
.stat small {
  font-weight: 600;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.card h3 {
  margin-bottom: 5px;
}
.card .actions {
  margin-top: 18px;
}
.card .meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 24px;
}
.meta span {
  display: block;
  font-size: 13px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.tag {
  font-size: 11px;
  border-radius: 6px;
  padding: 4px 8px;
  background: #edf4ef;
  color: #61776a;
}
.empty {
  padding: 50px;
  text-align: center;
  grid-column: 1/-1;
}
.empty h3 {
  margin-bottom: 9px;
}
.empty button {
  margin-top: 20px;
}
.hint {
  background: #eef5f0;
  border: 1px solid #dce9df;
  border-radius: 12px;
  padding: 15px;
  font-size: 13px;
  line-height: 1.65;
  margin: 16px 0;
}
.warning {
  background: #fff5df;
  color: #825b20;
  border-color: #f0dfbb;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid #e0e9e2;
  border-radius: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th,
td {
  padding: 16px;
  border-bottom: 1px solid #edf0ed;
  vertical-align: top;
}
th {
  color: #74867b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
td button {
  white-space: nowrap;
}
.pill {
  display: inline-block;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  background: #eef2ef;
  color: #6c7e70;
}
.pill.Succeeded {
  background: #e2f5e8;
  color: #16824c;
}
.pill.Failed,
.pill.Interrupted {
  background: #fff0ed;
  color: #b64a39;
}
.pill.Running {
  background: #e5efff;
  color: #3c6dad;
}
.pill.Queued {
  background: #fff4d9;
  color: #98732b;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-hero {
  background: #103e30;
  color: white;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
}
.login-hero h1 {
  font-size: 46px;
  max-width: 430px;
}
.login-hero p {
  color: #b0cfbd;
  max-width: 380px;
}
.login-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
}
.login-box form {
  max-width: 370px;
  width: 100%;
  display: grid;
  gap: 20px;
}
.login-box h2 {
  font-size: 29px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #73caa3;
}
.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  border: 1px solid #d8e3db;
  padding: 12px;
  border-radius: 9px;
  width: 100%;
  outline: none;
  background: #fff;
  color: #193c2f;
  font-weight: 400;
}
.field input:focus,
.field textarea:focus {
  border-color: #07926c;
  box-shadow: 0 0 0 3px #dff4e9;
}
.field textarea {
  font-family: Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  min-height: 155px;
  resize: vertical;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.span {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.7;
}
.check input {
  margin-top: 6px;
  accent-color: #087e61;
}
.error {
  color: #b14536;
  font-size: 13px;
  min-height: 18px;
}
.loading {
  padding: 40px;
}
dialog {
  border: 1px solid #dce7df;
  border-radius: 18px;
  padding: 28px;
  width: min(720px, 94vw);
  max-height: 92vh;
  color: #17352c;
}
dialog::backdrop {
  background: #12281d8c;
  backdrop-filter: blur(3px);
}
dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
dialog header button {
  padding: 6px 11px;
  background: #eff4f0;
  color: #3e5d4b;
}
dialog form {
  display: grid;
  gap: 18px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 8px;
}
pre {
  background: #123527;
  color: #d7eadd;
  border-radius: 11px;
  padding: 18px;
  font-family: Consolas, monospace;
  font-size: 12px;
  line-height: 1.9;
  max-height: 400px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  padding: 14px 20px;
  background: #173e2b;
  color: white;
  border-radius: 11px;
  display: none;
  max-width: min(500px, 90vw);
  z-index: 9;
}
.release {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edf1ed;
  padding: 15px 0;
  gap: 10px;
}
.release .meta {
  margin-top: 5px;
}
.release b {
  display: block;
}
.mono {
  font-family: Consolas, monospace;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
.detail-grid span {
  display: block;
  font-size: 13px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.lead {
  margin-bottom: 25px;
}
@media (max-width: 1050px) {
  .main {
    padding: 26px;
  }
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 18px;
    gap: 18px;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    overflow: auto;
  }
  .sidebar nav button {
    padding: 9px;
    font-size: 12px;
    white-space: nowrap;
  }
  .sidebar footer {
    display: none;
  }
  .main {
    padding: 22px 16px;
  }
  .top {
    align-items: flex-start;
    gap: 16px;
  }
  .top h1 {
    font-size: 24px;
  }
  .top > .actions {
    max-width: 130px;
  }
  .login {
    display: block;
  }
  .login-hero {
    padding: 35px;
    min-height: 270px;
  }
  .login-hero h1 {
    font-size: 33px;
  }
  .login-box {
    padding: 35px 23px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .card .meta {
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  dialog {
    padding: 20px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .sidebar footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
}
.dialog-footer {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 14px 0;
}
