:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: #17352d;
  background: #f5f7f4;
  font-synthesis: none;
  --green: #0b7658;
  --line: #dfe7e0;
  --muted: #65756d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 3px;
}
.mark {
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 29px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}
h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 5px 0 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 8px 0 18px;
}
p {
  line-height: 1.65;
}
.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
}
.muted,
small {
  color: var(--muted);
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 24px;
}
.login {
  max-width: 430px;
  margin: 8vh auto;
}
.login button {
  width: 100%;
  margin-top: 6px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cdd8cf;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  font: inherit;
  color: inherit;
  min-height: 42px;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #bce4d2;
  outline-offset: 2px;
}
input[type="file"] {
  font-size: 12px;
  padding: 9px;
}
button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #cbd8ce;
  border-radius: 8px;
  background: #fff;
  color: #195b46;
  padding: 10px 16px;
  min-height: 42px;
  cursor: pointer;
}
button:hover {
  background: #edf6f0;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
button.danger {
  color: #aa392f;
  border-color: #e6bbb6;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.text {
  padding-left: 0;
  border-color: transparent;
  background: transparent;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-head h1 {
  margin-bottom: 24px;
}
.badge {
  font-size: 12px;
  background: #e8f4ed;
  color: #146447;
  border-radius: 6px;
  padding: 6px 9px;
  white-space: nowrap;
}
.badge.locked {
  background: #f5edda;
  color: #795b18;
}
.badge.withdrawn {
  background: #f5e6e3;
  color: #924238;
}
nav {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
nav button {
  border: none;
  background: transparent;
}
nav .selected {
  background: #dfefe5;
  color: #086445;
}
.toolbar {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.toolbar label {
  margin: 0;
  min-width: 140px;
}
.toolbar label:has(input) {
  flex: 1;
}
.toolbar h2 {
  margin: 0;
  flex: 1;
}
.toolbar button {
  margin-bottom: 0;
}
.two-col {
  align-items: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.info {
  background: #f3f8f4;
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  margin: 16px 0;
}
.info b {
  font-weight: 600;
}
.instructions {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  color: #195b46;
  font-weight: 600;
  min-height: 24px;
}
.instructions li {
  line-height: 1.8;
  margin: 7px 0;
}
.empty {
  text-align: center;
  padding: 64px 20px;
  background: #fff;
  border: 1px dashed #d1ded4;
  border-radius: 14px;
}
.empty h2 {
  margin: 0 0 8px;
}
.release {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 20px 22px;
  margin: 10px 0;
}
.release h2 {
  font-size: 17px;
  margin: 0 0 7px;
}
.release p {
  font-size: 13px;
  margin: 4px 0;
  color: var(--muted);
}
.release button {
  align-self: center;
}
.release small {
  display: block;
  font-size: 12px;
  margin-top: 8px;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.details-grid dl {
  background: #f5f8f5;
  border-radius: 8px;
  padding: 14px;
  margin: 0;
}
.details-grid dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
}
.details-grid dd {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.actions label {
  margin: 0;
}
.actions input {
  max-width: 120px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.6;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 11px 8px;
  overflow-wrap: anywhere;
}
th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.65;
  background: #f4f7f4;
  padding: 16px;
  border-radius: 8px;
}
#status {
  pointer-events: none;
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 40px);
  width: max-content;
  background: #173d30;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 24px #173d3020;
  font-size: 14px;
  margin: 0;
  z-index: 10;
}
#status:empty {
  display: none;
}
#status.error {
  background: #963b30;
}
progress {
  width: 100%;
  margin-top: 16px;
}
#account {
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
}
#account button {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 12px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  header {
    padding: 0 16px;
    height: 65px;
  }
  main {
    padding: 24px 16px;
  }
  .two-col,
  .details-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 18px;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .badge {
    font-size: 11px;
  }
  .toolbar label {
    min-width: calc(50% - 8px);
    flex: 1;
  }
  .release {
    padding: 16px;
  }
  .release h2 {
    font-size: 16px;
  }
  table {
    min-width: 650px;
  }
  .login {
    margin-top: 5vh;
  }
  .brand {
    font-size: 16px;
  }
  .brand small {
    font-size: 10px;
  }
}

.diagnostics {
  margin-top: 18px;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.event-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #f4f8f5;
  border-radius: 7px;
  font-size: 13px;
}
.event-grid b {
  color: var(--green);
}

/* Keep the application context visible at desktop and narrow mobile widths. */
.app-switcher {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  margin: 0 0 18px;
}
.app-switcher label {
  min-width: 190px;
  margin: 0;
}
.app-switcher select {
  margin: 5px 0 0;
}
.app-switcher .muted {
  flex: 1;
  font-size: 13px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.pagination span {
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.settings-grid article {
  min-width: 0;
}
.settings-grid textarea,
.native-input {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0;
}
.check-label input {
  width: auto;
  margin: 0;
}
.base-row {
  margin-bottom: 12px;
  padding: 18px 20px;
}
.base-row h2 {
  font-size: 17px;
  margin: 0 0 8px;
}
.base-row p {
  margin: 5px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
}
.compact-details {
  margin-top: 18px;
}
.compact-details summary {
  font-weight: 600;
  cursor: pointer;
}
.compact-details form {
  margin-top: 16px;
}
.key-row {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.key-row:last-child {
  border: 0;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
nav {
  flex-wrap: wrap;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  main {
    padding: 24px 16px 48px;
  }
  header {
    height: 68px;
    padding: 0 16px;
  }
  .app-switcher {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
  }
  .app-switcher label {
    flex: 1;
    min-width: 180px;
  }
  .app-switcher .muted {
    flex-basis: 100%;
    order: 3;
  }
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel {
    padding: 18px;
  }
  h1 {
    font-size: 25px;
  }
  nav button {
    padding: 10px 12px;
  }
}
