:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --paper: #fff;
  --ink: #1c302b;
  --muted: #6d7d76;
  --line: #e3e9e3;
  --green: #246750;
  --soft: #edf4ee;
  --accent: #dcf1ba;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
textarea {
  font: inherit;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 15px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  transition:
    background 0.15s,
    border-color 0.15s;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: var(--soft);
  border-color: #b8cfc1;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
:focus-visible {
  outline: 3px solid #8bb59d;
  outline-offset: 3px;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.primary:hover {
  background: #174e3a;
  color: white;
}
.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.danger {
  color: #a13e37;
}
[hidden] {
  display: none !important;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
  text-decoration: none !important;
}
.brand-dot {
  color: #89a783;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  color: var(--accent);
  background: #143d35;
}
.brand svg {
  width: 29px;
  height: 29px;
}
.layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  padding: 32px 22px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #fafbf8;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  margin: 0 7px 52px;
}
.nav-label,
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-label {
  margin: 0 14px 14px;
}
nav {
  display: grid;
  gap: 7px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}
nav a:hover {
  background: var(--soft);
  text-decoration: none;
}
nav a.active {
  background: #e7eee4;
  color: #29553b;
  font-weight: 650;
}
.nav-icon {
  width: 19px;
  height: 19px;
}
.sidebar-foot {
  margin-top: auto;
  padding: 18px 10px 0;
  border-top: 1px solid var(--line);
}
.identity {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #e5eadc;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #577247;
}
.identity-text {
  min-width: 0;
}
.identity-text strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.identity-email {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signout {
  padding: 10px 0 0;
  font-size: 11px;
  font-weight: 400;
}
.main {
  width: 100%;
  max-width: 1400px;
  padding: 34px 44px 36px;
  margin: 0 auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 39px;
  font-size: 12px;
  color: var(--muted);
}
.private-label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.private-label svg {
  width: 13px;
  height: 13px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
h1 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 0 10px;
}
.subtitle {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
h2 {
  font-size: 16px;
  margin: 0;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  margin: 0;
}
p {
  line-height: 1.8;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.stat {
  display: block;
  text-align: left;
  min-height: 116px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  position: relative;
}
.stat.active {
  border-color: #558066;
  background: #eef4e9;
  box-shadow: 0 0 0 1px #558066;
}
.stat-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.stat strong {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  display: block;
  line-height: 1;
  margin-top: 21px;
  font-variant-numeric: tabular-nums;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #708c71;
}
.dot.queued {
  background: #cba65b;
}
.dot.running {
  background: #6d9cca;
}
.dot.succeeded {
  background: #5d9a7d;
}
.dot.failed {
  background: #c97a71;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.panel-head {
  padding: 21px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.panel-subtitle {
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.filter-tag {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--soft);
  border: 0;
  margin-left: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
th {
  padding: 13px 24px;
  text-align: left;
  color: #88958e;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.7px;
  background: #fcfdfa;
}
td {
  padding: 21px 24px;
  border-top: 1px solid #eff2ec;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
tbody tr:hover {
  background: #fbfcf8;
}
.item-title {
  display: flex;
  gap: 12px;
}
.item-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  border-radius: 9px;
  flex: none;
  background: #f0f3ec;
  color: #758b68;
}
.item-icon svg {
  width: 17px;
  height: 17px;
}
.item-link {
  display: block;
  font-size: 13px;
  color: var(--ink);
  font-weight: 550;
}
.item-meta {
  color: #89938d;
  font-size: 10px;
  margin-top: 5px;
}
.summary {
  color: #647269;
  font-size: 12px;
  line-height: 1.9;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--soft);
  font-size: 10px;
  white-space: nowrap;
  font-weight: 550;
}
.status.queued {
  background: #faf2e0;
  color: #a17c31;
}
.status.running {
  background: #edf3fb;
  color: #547faf;
}
.status.succeeded {
  background: #ebf3e9;
  color: #54805b;
}
.status.failed {
  background: #faeeea;
  color: #b16456;
}
.status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty-icon {
  display: block;
  font-size: 28px;
  color: #b4c0b3;
  margin-bottom: 14px;
}
.empty strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 10px;
}
.error {
  padding: 24px;
  color: #a13e37;
  font-size: 13px;
}
.pager {
  padding: 17px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.pager[hidden] {
  display: none;
}
.pager-actions {
  display: flex;
  gap: 7px;
}
.pager button {
  font-size: 11px;
  padding: 7px 11px;
}
.footer-note {
  font-size: 10px;
  color: #9aa399;
  margin-top: 20px;
  text-align: center;
}
.notice {
  padding: 12px 15px;
  border-radius: 9px;
  background: #edf4e9;
  color: #335c42;
  font-size: 12px;
  line-height: 1.8;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.notice[data-error="true"] {
  background: #fcf0ed;
  color: #a13e37;
}
label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  color: #586b60;
}
input,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #dfe6dd;
  background: #fff;
  color: var(--ink);
  border-radius: 9px;
  outline-offset: 2px;
  font-size: 13px;
}
input::placeholder {
  color: #a0aaa3;
}
textarea {
  resize: vertical;
  min-height: 78px;
}
.full {
  width: 100%;
}
.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.form-foot button {
  font-size: 11px;
  padding: 5px 0;
}
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 880px;
}
.panel-body {
  padding: 22px 24px;
}
.provider-row,
.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.provider-row:last-child,
.key-row:last-child {
  border-bottom: 0;
}
.provider-name {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  font-weight: 550;
}
.provider-symbol {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #46564d;
  background: white;
  font-weight: 650;
}
.key-form {
  display: flex;
  gap: 10px;
  align-items: end;
}
.key-form label {
  flex: 1;
  margin-bottom: 0;
}
.key-form button {
  height: 43px;
}
.key-title {
  font-size: 12px;
  font-weight: 600;
}
.key-detail {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.account-email {
  font-size: 15px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 46% 54%;
  background: white;
}
.auth-story {
  background: #143d35;
  color: white;
  padding: 44px 55px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-story .brand {
  color: white;
}
.auth-story .brand-mark {
  background: #295246;
}
.story-content {
  margin: auto 0;
  padding: 54px 0;
  position: relative;
  z-index: 1;
}
.story-content h1 {
  font-size: clamp(28px, 3.4vw, 47px);
  font-weight: 550;
  letter-spacing: -1.5px;
  line-height: 1.5;
  margin: 18px 0;
}
.story-content p {
  color: #a8beb2;
  font-size: 13px;
  max-width: 325px;
  line-height: 2;
}
.story-kicker {
  font-size: 10px;
  color: #cce3b2;
  letter-spacing: 2px;
}
.story-art {
  width: 100%;
  max-width: 330px;
  margin: 25px 0 5px;
}
.story-foot {
  color: #8aa59a;
  font-size: 10px;
  letter-spacing: 1px;
}
.auth-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}
.auth-form-wrap {
  width: 100%;
  max-width: 355px;
}
.auth-form-wrap h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
}
.auth-form-wrap .subtitle {
  margin-bottom: 27px;
}
.tabs {
  display: flex;
  background: #f3f5ef;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 25px;
  gap: 4px;
}
.tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px;
}
.tabs button.active {
  background: white;
  box-shadow: 0 2px 5px #1c302b0c;
  color: var(--ink);
}
.divider {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #94a094;
  font-size: 10px;
  margin: 26px 0 18px;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.social-buttons {
  display: flex;
  gap: 11px;
}
.social-buttons button {
  flex: 1;
  font-size: 12px;
}
.form-caption {
  margin: 25px 0 0;
  font-size: 10px;
  line-height: 1.9;
  color: #97a195;
  text-align: center;
}
@media (max-width: 1100px) {
  .main {
    padding: 30px 26px;
  }
  .layout {
    grid-template-columns: 186px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 14px;
  }
  th,
  td {
    padding-left: 17px;
    padding-right: 17px;
  }
  .stat {
    padding: 16px;
  }
  .auth-story {
    padding: 35px;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }
  .sidebar .brand {
    margin: 0;
    font-size: 21px;
  }
  .sidebar .brand-mark {
    width: 31px;
    height: 31px;
  }
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    gap: 4px;
  }
  nav a {
    padding: 9px 10px;
    font-size: 11px;
  }
  .nav-icon {
    display: none;
  }
  .main {
    padding: 24px 20px;
  }
  .topbar {
    margin-bottom: 25px;
    font-size: 10px;
  }
  h1 {
    font-size: 25px;
  }
  .heading {
    align-items: flex-start;
    gap: 10px;
  }
  .heading button {
    font-size: 11px;
    padding: 8px 11px;
  }
  .subtitle {
    font-size: 12px;
  }
  .stats {
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
  }
  .stat {
    min-height: 95px;
    padding: 13px;
  }
  .stat strong {
    font-size: 25px;
    margin-top: 15px;
  }
  .stat-title {
    font-size: 11px;
  }
  .panel-head {
    padding: 18px;
  }
  .panel-head h2 {
    font-size: 14px;
  }
  .panel-subtitle {
    font-size: 10px;
  }
  .panel-head > .muted {
    display: none;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tr {
    padding: 16px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  td {
    border: 0;
    padding: 0;
  }
  td:nth-child(3) {
    grid-column: 1 / -1;
  }
  td:nth-child(4) {
    grid-column: 1 / -1;
    font-size: 10px;
    color: var(--muted);
  }
  .pager {
    padding: 15px;
  }
  .pager .muted {
    font-size: 10px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 21px 25px;
  }
  .story-content,
  .story-foot {
    display: none;
  }
  .auth-content {
    padding: 40px 25px;
    align-items: flex-start;
  }
  .panel-body {
    padding: 18px;
  }
  .key-form {
    align-items: stretch;
    flex-direction: column;
  }
  .key-form button {
    align-self: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.connect-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.connect-card {
  width: min(100%, 460px);
}
.connect-card .brand {
  margin-bottom: 34px;
}
.connect-card h1 {
  font-size: 25px;
}
.connect-card .panel-body {
  padding: 32px;
}
#connect-code {
  font-size: 23px;
  letter-spacing: 4px;
  text-align: center;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.command {
  padding: 16px;
  background: #f5f7f1;
  border-radius: 9px;
  font-size: 12px;
  overflow: auto;
  color: #35614b;
}

.heading > .button {
  flex-shrink: 0;
  white-space: nowrap;
}

.setting-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.setting-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  cursor: pointer;
}

.settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
