:root {
  --ink: #203b38;
  --muted: #7a8580;
  --paper: #f5f5ee;
  --white: #fffefa;
  --line: #e2e7de;
  --green: #21705b;
  --green-soft: #e7f0e8;
  --amber: #a16b19;
  --red: #b3463a;
  --serif: "Iowan Old Style", "Songti SC", "Noto Serif CJK SC", serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 14px/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #72a693;
  outline-offset: 3px;
}
button,
input,
select,
textarea {
  border-radius: 7px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d8dfd4;
  background: #fff;
  color: var(--ink);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #21705b12;
}
input[type="checkbox"] {
  width: auto;
  accent-color: var(--green);
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 500;
}
label small {
  font-weight: 400;
}
.checkbox {
  flex-direction: row;
  align-items: center;
}
.primary,
.secondary,
.danger {
  border: 1px solid transparent;
  padding: 10px 17px;
  white-space: nowrap;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #195c4a;
}
.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}
.secondary:hover {
  background: #eef1e9;
}
.danger {
  background: #fbefec;
  color: var(--red);
}
.text-button {
  background: none;
  border: 0;
  padding: 4px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.error {
  color: var(--red);
  font-size: 13px;
  min-height: 0;
}
.hidden {
  display: none !important;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #6c8b7f;
  margin: 0 0 9px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  letter-spacing: 1px;
}
.wordmark small {
  display: block;
  font: 9px/1.8 var(--sans);
  letter-spacing: 2px;
  opacity: 0.65;
}
.brand-mark {
  flex-shrink: 0;
  font: 22px/43px var(--serif);
  display: inline-block;
  width: 43px;
  height: 43px;
  text-align: center;
  border: 1px solid #ffffff45;
  border-radius: 12px;
  letter-spacing: 0;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: radial-gradient(ellipse at 90% 10%, #e6ecd9, transparent 60%);
}
.login-story {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #173f35, #244e40);
  color: #f6f6e9;
  padding: 8vh 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-story:after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -170px;
  width: 540px;
  height: 540px;
  border: 1px solid #e6ecd930;
  border-radius: 50%;
  box-shadow:
    0 0 0 70px #e6ecd907,
    0 0 0 140px #e6ecd905;
  pointer-events: none;
}
.login-story .wordmark {
  position: absolute;
  top: 8vh;
}
.login-story .eyebrow {
  margin-top: 90px;
  color: #a5bcb0;
}
.login-story h1 {
  font: clamp(38px, 4vw, 64px) / 1.4 var(--serif);
  font-weight: 500;
  margin: 20px 0;
}
.story-copy {
  color: #c0d0c5;
  line-height: 2;
}
.flow {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: #c9d6c9;
  margin-top: 44px;
  flex-wrap: wrap;
}
.flow i {
  width: 25px;
  height: 1px;
  background: #91ac99;
}
.story-foot {
  font-size: 11px;
  color: #92ab9d;
  margin-top: 8vh;
}
.login-card {
  width: min(370px, 80%);
  margin: auto;
  padding: 55px 0;
}
.login-card h2 {
  font: clamp(24px, 3vw, 30px) var(--serif);
  margin: 10px 0;
}
.login-card label {
  margin-top: 25px;
}
.login-card .primary {
  width: 100%;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
}
.login-note {
  font-size: 11px;
  color: #8c948b;
  margin-top: 28px;
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 220px;
  position: fixed;
  height: 100vh;
  background: linear-gradient(165deg, #193e35, #15382e);
  color: #e6efdf;
  padding: 32px 23px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.sidebar .wordmark {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.5px;
}
.sidebar .brand-name > span {
  display: block;
}
.sidebar .wordmark small {
  font-size: 8px;
  letter-spacing: 0.4px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 2px;
  color: #89a598;
  margin: 48px 12px 14px;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  background: transparent;
  color: #b4c8bd;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 0;
  text-align: left;
  padding: 13px 15px;
}
nav button span {
  font-size: 10px;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}
nav button.active {
  background: #f0f4e9;
  color: #224636;
}
nav button:hover:not(.active) {
  background: #ffffff0c;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 10px;
  color: #a8bdb1;
  border-top: 1px solid #ffffff13;
  padding-top: 20px;
}
.sidebar-foot p {
  font-family: var(--serif);
  font-size: 13px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a6c39b;
  display: inline-block;
  margin-right: 7px;
}
main {
  margin-left: 220px;
  width: calc(100% - 220px);
  min-width: 0;
  background: radial-gradient(ellipse at 85% 0, #eaf0df88, transparent 45%);
}
.topbar {
  height: 74px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.breadcrumb {
  color: var(--muted);
}
.breadcrumb span {
  padding: 0 13px;
  color: #b1bbb0;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.account {
  display: flex;
  gap: 20px;
  align-items: center;
}
.workspace {
  padding: 35px 38px 50px;
  max-width: 1680px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.page-heading h1 {
  font: 32px/1.3 var(--serif);
  font-weight: 500;
  margin: 0;
}
.page-heading p.muted {
  font-size: 12px;
  margin: 10px 0 0;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.heading-actions > span {
  font-size: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 21px 24px;
  border-radius: 10px;
}
.stat .label {
  font-size: 12px;
  color: var(--muted);
}
.stat .number {
  font: 38px/1.4 var(--serif);
  margin: 7px 0;
}
.stat small {
  color: var(--muted);
  font-size: 10px;
}
.stat .index {
  position: absolute;
  right: 19px;
  top: 19px;
  font-size: 10px;
  color: #b5beaf;
}
.stat.accent {
  background: #e9f0e3;
  border-color: #d9e5d2;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 19px 23px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.panel-header h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.panel-header small {
  font-size: 11px;
  color: var(--muted);
}
.panel-header select {
  max-width: 240px;
  padding: 6px;
}
.panel-body {
  padding: 23px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(265px, 1fr);
  gap: 20px;
}
.step {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child {
  border: 0;
}
.step-number {
  font: 21px var(--serif);
  color: #90a78e;
}
.step strong {
  font-size: 12px;
}
.step p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0;
}
.link-button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  padding: 0;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
th {
  background: #f8f9f3;
  color: #7b867a;
  font-weight: 500;
  font-size: 11px;
  padding: 13px 19px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 19px;
  border-bottom: 1px solid #edf0e7;
  vertical-align: middle;
}
tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fafbf5;
}
td .subline {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-name {
  font-weight: 600;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  background: #eef0e9;
  color: #72816e;
}
.pill.ok {
  background: #e9f2e6;
  color: #467242;
}
.pill.running {
  background: #e7efed;
  color: #246751;
}
.pill.warn {
  background: #f9efdc;
  color: var(--amber);
}
.pill.failed,
.pill.partial,
.pill.interrupted,
.pill.canceled {
  background: #f9eae5;
  color: var(--red);
}
.row-actions {
  display: flex;
  gap: 13px;
  align-items: center;
}
.row-actions button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  padding: 3px 0;
}
.row-actions button.delete {
  color: #9b8073;
}
.empty {
  padding: 55px 25px;
  text-align: center;
}
.empty .empty-mark {
  font: 32px var(--serif);
  color: #9caf96;
  margin-bottom: 14px;
}
.empty h3 {
  font-weight: 500;
  font-size: 15px;
  margin: 0 0 8px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  max-width: 470px;
  margin: 0 auto 18px;
}
.collector {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.collector:last-child {
  border: 0;
}
.collector-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.collector p {
  font-size: 11px;
  margin: 8px 0 0;
  color: var(--muted);
  word-break: break-all;
}
.collector code {
  font-size: 10px;
}
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.source-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.source-head {
  display: flex;
  justify-content: space-between;
}
.source-card h3 {
  font-size: 16px;
  margin: 18px 0 5px;
}
.source-card code {
  font-size: 12px;
  word-break: break-all;
}
.source-card p {
  font-size: 11px;
  color: var(--muted);
}
.source-card .row-actions {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.notice {
  font-size: 12px;
  color: var(--muted);
  padding: 14px 18px;
  background: #edf1e5;
  border: 1px solid #dfe7d6;
  border-radius: 7px;
  margin-bottom: 20px;
}
.badge-count {
  font-size: 10px;
  color: #7c9479;
  background: #edf2e6;
  border-radius: 4px;
  padding: 3px 7px;
  margin-left: 8px;
}
dialog {
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 13px;
  width: min(660px, calc(100% - 32px));
  color: var(--ink);
  background: var(--white);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 28px 90px #183b352e;
}
dialog::backdrop {
  background: #18332d66;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  font: 25px var(--serif);
  margin: 0;
}
.close-button {
  font-size: 25px;
  line-height: 1;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 4px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}
.form-grid label {
  font-size: 12px;
}
.full {
  grid-column: 1/-1;
}
.help {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.dialog-footer {
  display: flex;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 25px;
  align-items: center;
}
.spacer {
  flex: 1;
}
.log-dialog {
  width: min(1000px, calc(100% - 32px));
}
.log-dialog pre {
  height: 52vh;
  overflow: auto;
  background: #16352d;
  color: #d4e3d3;
  padding: 20px;
  border-radius: 8px;
  font:
    12px/1.9 "SFMono-Regular",
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.log-hint {
  font-size: 11px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  background: #204e3f;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px #0002;
  z-index: 1000;
  max-width: 90vw;
}
.fade-in {
  animation: reveal 0.28s ease-out;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 190px;
    padding: 28px 16px;
  }
  main {
    margin-left: 190px;
    width: calc(100% - 190px);
  }
  .workspace {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .heading-actions > span {
    display: none;
  }
  .source-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .overview-grid > div {
    min-width: 0;
  }
}
@media (max-width: 760px) {
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    display: none;
  }
  .login-card {
    width: min(390px, 85%);
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px 18px;
  }
  .sidebar .wordmark {
    font-size: 16px;
  }
  .sidebar .brand-name > span {
    display: inline;
  }
  .sidebar .brand-mark {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 18px;
  }
  .sidebar .wordmark small,
  .sidebar-foot,
  .nav-caption {
    display: none;
  }
  nav {
    display: flex;
    gap: 4px;
    margin-top: 17px;
    overflow: auto;
  }
  nav button {
    padding: 8px 10px;
    white-space: nowrap;
    font-size: 12px;
  }
  nav button span {
    display: none;
  }
  .app {
    display: block;
  }
  main {
    margin-left: 0;
    width: 100%;
  }
  .topbar {
    height: 54px;
    padding: 0 18px;
  }
  .workspace {
    padding: 24px 16px;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .heading-actions {
    gap: 6px;
  }
  .heading-actions button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat .number {
    font-size: 30px;
  }
  .source-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  dialog {
    padding: 22px;
  }
  .page-heading p.muted {
    max-width: 200px;
  }
  .overview-grid {
    gap: 0;
  }
}
