:root {
  --bg: #f8f9f5;
  --paper: #fff;
  --ink: #263e33;
  --muted: #7b877f;
  --line: #e1e8dd;
  --green: #335c46;
  --soft: #edf3e8;
  --accent: #c9ddad;
  --red: #ad513c;
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 9px;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: -1px;
  margin-bottom: 9px;
}
h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}
h3 {
  font-size: 16px;
}
.brand {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 35px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand span {
  font:
    600 13px -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    sans-serif;
  letter-spacing: 1px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: #7c927b;
  display: block;
  margin-bottom: 13px;
}
.muted,
.hint {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.primary {
  background: var(--green);
  color: white;
  padding: 13px 19px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}
.secondary {
  padding: 12px 20px;
  background: var(--soft);
  color: var(--ink);
}
.quiet {
  background: none;
  color: var(--muted);
  padding: 8px 10px;
}
.error {
  color: var(--red);
  font-size: 13px;
  min-height: 21px;
  margin: 10px 0 0;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
input:not([type="radio"]),
select {
  display: block;
  width: 100%;
  border: 1px solid #dce3d8;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  margin: 7px 0 0;
  min-height: 46px;
}
input:focus,
select:focus {
  outline: 2px solid #a2bc8e;
  border-color: transparent;
}
.login-view {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 100vh;
}
.login-art {
  background: #e5eddd;
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  border: 1px solid #c9d8be;
  border-radius: 50%;
  bottom: -200px;
  right: -140px;
  box-shadow:
    0 0 0 60px #dae5d055,
    0 0 0 120px #dae5d033;
}
.login-art h1 {
  font-size: 46px;
  line-height: 1.5;
  letter-spacing: 0;
}
.login-art p {
  color: #6b8068;
  line-height: 2;
  font-size: 16px;
}
.art-footer {
  font-size: 10px;
  letter-spacing: 2px;
  color: #7b8f76;
}
.login-main {
  display: grid;
  place-items: center;
  padding: 50px;
}
.login-card {
  width: 100%;
  max-width: 360px;
}
.login-card h2 {
  font-size: 26px;
  margin-bottom: 9px;
}
.login-card label {
  margin: 24px 0;
}
.login-card .primary {
  width: 100%;
  margin-top: 30px;
}
.hint {
  font-size: 11px;
  margin-top: 24px;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 210px;
  flex-shrink: 0;
  background: #fcfdf9;
  border-right: 1px solid var(--line);
  padding: 32px 25px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  font-size: 32px;
}
.sidebar-caption {
  font-size: 11px;
  color: #889582;
  margin: 12px 0 44px;
  letter-spacing: 2px;
}
.sidebar nav a {
  display: block;
  margin: 6px -8px;
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 13px;
  color: #6c7a6e;
}
.sidebar nav .nav-current {
  background: #e8efdf;
  color: #2f523b;
  font-weight: 600;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 11px;
  color: #6b806c;
}
.sidebar-bottom p {
  font-size: 10px;
  margin: 7px 0 0 15px;
  color: #8f9b8b;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7da35e;
  margin-right: 7px;
}
.main-shell {
  margin-left: 210px;
  min-width: 0;
  flex: 1;
}
header {
  height: 70px;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}
header strong {
  color: var(--ink);
  font-weight: 500;
}
header > div {
  display: flex;
  gap: 16px;
  align-items: center;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 35px 36px 18px;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
}
.page-title p {
  margin-bottom: 0;
  font-size: 13px;
}
.tag {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
  color: #6c8565;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfdf9;
  margin-bottom: 27px;
}
.stats article {
  padding: 18px 25px;
}
.stats article + article {
  border-left: 1px solid var(--line);
}
.stats span,
.stats small {
  display: block;
  font-size: 11px;
  color: #8b9688;
}
.stats strong {
  display: block;
  font-size: 19px;
  font-weight: 500;
  margin: 3px 0 2px;
}
.stats small {
  font-size: 10px;
}
.work-grid {
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(330px, 1fr);
  gap: 22px;
  align-items: stretch;
}
.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 24px;
  border-bottom: 1px solid #edf0e9;
  gap: 12px;
}
.section-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head h2 {
  font-size: 15px;
}
.step-number {
  font-family: Georgia, serif;
  color: #a3b497;
  font-size: 16px;
}
.deploy-panel form {
  padding: 22px 24px;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.project-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px 15px 15px 45px;
  cursor: pointer;
  background: #fff;
}
.project-card:has(input:checked) {
  border-color: #91ac79;
  background: #f0f5e9;
  box-shadow: inset 0 0 0 1px #91ac7922;
}
.project-card input {
  position: absolute;
  right: 10px;
  top: 10px;
  accent-color: #648b4c;
}
.project-card strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.project-card small {
  display: block;
  font-size: 10px;
  color: #8a9782;
}
.project-icon {
  position: absolute;
  left: 16px;
  top: 17px;
  font-size: 19px;
  color: #7f9a6c;
}
fieldset {
  padding: 0;
  margin: 0 0 20px;
  border: 0;
}
legend {
  font-size: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row label {
  font-size: 12px;
}
.form-row select {
  font-size: 12px;
}
.selection-note {
  background: #f7f9f2;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 11px;
  color: #748568;
  margin: 18px 0 9px;
}
.deploy-panel .primary {
  width: 100%;
  margin-top: 19px;
}
.detail-panel {
  min-height: 430px;
}
.empty {
  display: grid;
  justify-content: center;
  text-align: center;
  padding: 95px 20px;
  color: #95a18d;
}
.empty > span {
  font-size: 35px;
  font-weight: 200;
  color: #aebe9f;
  margin-bottom: 14px;
}
.empty h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 9px;
  color: #7b8c72;
}
.empty p {
  font-size: 12px;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  background: #f0f2ed;
  color: #85917e;
  font-size: 11px;
  white-space: nowrap;
}
.badge.success {
  background: #e9f2e0;
  color: #507535;
}
.badge.failure,
.badge.cancelled,
.badge.timed_out {
  background: #faeae5;
  color: #ad513c;
}
.badge.in_progress,
.badge.submitted,
.badge.queued,
.badge.preparing,
.badge.pending {
  background: #eef0e3;
  color: #8a7936;
}
#detail {
  padding: 20px 24px;
}
#detail-summary {
  font-size: 12px;
  margin-bottom: 12px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.text-link {
  display: inline-block;
  color: #63884c;
  font-size: 12px;
  margin-bottom: 15px;
}
.job-stage {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.job-stage h3 {
  font-size: 13px;
}
.stage {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: #7a8872;
  padding: 4px 0;
}
.stage .mark {
  width: 16px;
  flex-shrink: 0;
}
.stage.current {
  color: #496b36;
  font-weight: 600;
}
.job-stage button {
  font-size: 11px;
  padding: 6px 10px;
  margin: 9px 0;
  background: var(--soft);
  color: var(--green);
}
#logs {
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  background: #25392f;
  color: #e1e9d9;
  padding: 14px;
  border-radius: 8px;
  font-size: 11px;
}
#artifacts a {
  display: block;
  font-size: 12px;
  padding: 6px 0;
  color: var(--green);
}
.history-panel {
  margin-top: 26px;
}
.count {
  background: #edf2e7;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 6px;
  color: #7d8e6c;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 11px;
  font-weight: 500;
  color: #86927c;
  background: #fafbf7;
  padding: 12px 24px;
}
td {
  padding: 15px 24px;
  border-top: 1px solid #edf0e9;
  white-space: nowrap;
}
td small {
  display: block;
  color: #8f9a87;
  font-size: 10px;
  font-family: monospace;
}
td button {
  background: none;
  color: #64864e;
  font-size: 11px;
}
.empty-history {
  padding: 25px;
  text-align: center;
  font-size: 12px;
}
.notice {
  background: #fff4df;
  color: #967330;
  border: 1px solid #ead8ab;
  border-radius: 9px;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 12px;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #a0aa99;
  font-size: 10px;
  padding: 23px 2px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  max-width: 460px;
  width: calc(100% - 36px);
  color: var(--ink);
}
dialog::backdrop {
  background: #16271d66;
  backdrop-filter: blur(3px);
}
dialog p {
  margin: 15px 0;
  font-size: 13px;
}
dialog code {
  display: block;
  font-size: 11px;
  padding-top: 8px;
  color: #a7683e;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 11px 22px;
  border-radius: 9px;
  box-shadow: 0 4px 30px #0002;
  z-index: 10;
}
@media (min-width: 1600px) {
  main {
    padding-top: 46px;
  }
  .page-title h1 {
    font-size: 36px;
  }
  .work-grid {
    gap: 28px;
  }
  .deploy-panel form {
    padding: 27px;
  }
  .project-card {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 175px;
    padding: 26px 18px;
  }
  .sidebar .brand {
    font-size: 27px;
  }
  .sidebar .brand span {
    font-size: 11px;
  }
  .main-shell {
    margin-left: 175px;
  }
  main {
    padding: 25px 22px;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .detail-panel {
    min-height: 240px;
  }
  .empty {
    padding: 45px 15px;
  }
  .section-head {
    padding: 18px 22px;
  }
  header {
    padding: 0 22px;
  }
  .stats article {
    padding: 16px;
  }
  .login-art {
    padding: 35px;
  }
  .login-art h1 {
    font-size: 36px;
  }
}
@media (max-width: 640px) {
  .sidebar {
    display: none;
  }
  .main-shell {
    margin-left: 0;
  }
  header {
    height: 58px;
    font-size: 10px;
  }
  main {
    padding: 24px 16px;
  }
  .page-title h1 {
    font-size: 26px;
  }
  .tag {
    display: none;
  }
  .stats article {
    padding: 12px 10px;
  }
  .stats strong {
    font-size: 13px;
  }
  .stats small {
    display: none;
  }
  .stats span {
    font-size: 10px;
  }
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-card {
    padding-left: 36px;
    padding-right: 20px;
  }
  .project-icon {
    left: 11px;
  }
  .section-head {
    padding: 17px;
  }
  .section-head .small {
    font-size: 10px;
  }
  .deploy-panel form {
    padding: 18px;
  }
  .form-row {
    gap: 10px;
  }
  th,
  td {
    padding: 12px 16px;
  }
  footer {
    display: block;
  }
  footer span {
    display: block;
    margin-top: 5px;
  }
  .login-view {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 160px;
    padding: 25px;
  }
  .login-art > div,
  .art-footer {
    display: none;
  }
  .login-main {
    padding: 35px 25px;
    align-items: start;
  }
  .login-card {
    max-width: 380px;
  }
}
