:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #242d29;
  background: #f5f5f0;
  font-synthesis: none;
  --ink: #242d29;
  --muted: #626d65;
  --line: #d9ded6;
  --green: #265c41;
  --green-light: #e7eee5;
  --red: #a42e2e;
  --paper: #fff;
  --radius: 7px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #42835a;
}
button {
  cursor: pointer;
  min-height: 40px;
  border: 1px solid #b9c5bb;
  border-radius: 5px;
  padding: 9px 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}
button:hover {
  background: #edf1eb;
}
button:active {
  background: #dfe8dd;
  transform: translateY(1px);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
button.primary:hover {
  background: #1b4931;
}
button.danger {
  color: var(--red);
  border-color: #d7b3ae;
  background: #fff8f6;
}
button.danger:hover {
  background: #f5e6e1;
}
.quiet {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 400;
}
a {
  color: #245f42;
  text-underline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.7px;
  margin-bottom: 7px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
small,
.small {
  font-size: 12px;
  line-height: 1.5;
}
.mono,
code,
pre {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.mono {
  font-size: 12px;
}
input,
textarea,
select {
  border: 1px solid #bac4bb;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 42px;
  max-width: 100%;
}
input,
textarea {
  width: 100%;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
}
.field {
  margin-bottom: 18px;
}
.hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 400;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row.wrap {
  flex-wrap: wrap;
}
.row.end {
  justify-content: flex-end;
}
.row.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.error {
  color: #862727;
  background: #fff0eb;
  padding: 12px 14px;
  border-left: 3px solid var(--red);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.success {
  color: #24583b;
  background: #eaf3e7;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.notice {
  background: #f4f0dc;
  color: #66511c;
  padding: 12px 18px;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid #e4dbb5;
}
.notice button {
  margin-left: 12px;
  min-height: 32px;
  padding: 4px 10px;
}
.hidden,
[hidden] {
  display: none !important;
}
.topbar {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.wordmark span {
  font-weight: 400;
  color: var(--muted);
  margin-left: 9px;
  letter-spacing: 0;
  font-size: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: calc(100vh - 65px);
}
.sidebar {
  background: #eeefe8;
  border-right: 1px solid var(--line);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sidebar-head {
  padding: 0 8px;
}
.sidebar-head h2 {
  margin: 0;
}
.sidebar-head span {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sidebar > button {
  width: 100%;
}
.client-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.client {
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  padding: 14px;
  width: 100%;
  min-width: 0;
}
.client:hover {
  background: #e1e6dc;
}
.client.selected {
  border-color: #bdccbb;
  background: #fff;
  box-shadow: inset 3px 0 var(--green);
}
.client-name {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
  margin-bottom: 7px;
}
.client-detail {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}
.status:before {
  content: "";
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #7e8681;
  flex: none;
}
.status.online {
  color: #27633f;
}
.status.online:before {
  background: #368455;
}
.status.pending {
  color: #765811;
}
.status.pending:before {
  background: #a78029;
}
.side-note {
  margin-top: auto;
  padding: 12px 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.main {
  min-width: 0;
  padding: 32px 38px 45px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}
.client-heading {
  margin-bottom: 26px;
}
.client-heading .info {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.eyebrow {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 27px;
  overflow-x: auto;
}
.tab {
  border: 0;
  border-radius: 0;
  padding: 12px 0;
  white-space: nowrap;
  min-height: 46px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.tab:hover {
  background: transparent;
  color: var(--green);
}
.tab.active {
  box-shadow: inset 0 -2px var(--green);
  color: var(--green);
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 24px;
}
.console textarea {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 14px;
  min-height: 140px;
  background: #fcfdf9;
}
.options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  gap: 18px;
}
.options select {
  width: 100%;
}
.console-footer {
  border-top: 1px solid #ebeee7;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.console-footer .hint {
  max-width: 340px;
  margin: 0;
}
.reference {
  padding-top: 8px;
  font-size: 13px;
  line-height: 1.6;
}
.reference h3 {
  margin-top: 24px;
}
.reference h3:first-child {
  margin-top: 0;
}
.reference code {
  font-size: 12px;
  display: block;
  padding: 8px 0;
  color: #3e5446;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.output-section {
  margin-top: 26px;
}
.output-title {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 430px;
  overflow-y: auto;
  margin: 0;
  padding: 20px;
  background: #f2f4ed;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.7;
  min-height: 110px;
}
.output.placeholder {
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
}
.recent {
  margin-top: 32px;
}
.section-head {
  margin-bottom: 15px;
}
.section-head h2 {
  margin: 0;
  font-size: 16px;
}
.job-list {
  border-top: 1px solid var(--line);
}
.job {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 2px;
  background: transparent;
  width: 100%;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 100px;
  gap: 12px;
  align-items: center;
  text-align: left;
  font-size: 12px;
  font-weight: 400;
}
.job code {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.badge-error {
  color: var(--red);
}
.empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}
.empty h2 {
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 12px;
}
.empty p {
  max-width: 460px;
  margin: 0 auto 24px;
  font-size: 14px;
}
.empty.compact {
  padding: 26px 16px;
  font-size: 13px;
}
.loading:before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  margin-right: 8px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login {
  max-width: 430px;
  margin: 10vh auto;
  padding: 0 20px;
}
.login .wordmark {
  margin-bottom: 48px;
}
.login h1 {
  font-size: 28px;
}
.login p {
  font-size: 14px;
  color: var(--muted);
}
.login .panel {
  margin-top: 24px;
}
.login button {
  width: 100%;
}
.login footer {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 20px;
}
.login code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.boot {
  padding: 30px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 680px;
  width: calc(100% - 32px);
  padding: 28px;
  box-shadow: 0 22px 70px #253f3026;
  color: var(--ink);
}
dialog::backdrop {
  background: #18291f55;
}
dialog h2 {
  font-size: 23px;
  margin: 0;
}
dialog .dialog-body {
  margin: 22px 0;
}
dialog p {
  font-size: 14px;
  color: var(--muted);
}
dialog pre {
  background: #f0f2ea;
  font-size: 12px;
  padding: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.dialog-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
.file-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
}
.file-toolbar {
  margin-bottom: 18px;
}
.file-toolbar input {
  min-width: 0;
}
.remote-list {
  min-height: 210px;
  max-height: 470px;
  overflow-y: auto;
}
.file-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid #e4e8df;
  border-radius: 0;
  padding: 12px 5px;
  width: 100%;
  text-align: left;
  background: transparent;
  font-size: 13px;
  font-weight: 400;
}
.file-entry .filename {
  overflow-wrap: anywhere;
  min-width: 0;
}
.file-kind {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.editor textarea {
  font:
    12px/1.6 ui-monospace,
    Consolas,
    monospace;
  min-height: 230px;
}
.file-meta {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.upload {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 26px;
}
.archive-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.archive-list th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
.archive-list td {
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.archive-list .name {
  max-width: 250px;
}
.archive-wrap {
  overflow-x: auto;
}
.network {
  font-size: 12px;
  color: var(--muted);
}
.network.failed {
  color: var(--red);
}
.result-json {
  max-height: 350px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f2f4ed;
  padding: 16px;
  font-size: 12px;
  line-height: 1.6;
}
.connection-note {
  margin-bottom: 20px;
}
.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.validation {
  min-height: 18px;
}
.count {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1100px) {
  .main {
    padding: 28px 24px;
  }
  .shell {
    grid-template-columns: 245px minmax(0, 1fr);
  }
  .console-grid {
    grid-template-columns: 1fr;
  }
  .reference {
    display: none;
  }
  .file-layout {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 18px;
  }
}
@media (max-width: 700px) {
  .topbar {
    padding: 0 16px;
    height: 60px;
  }
  .wordmark span {
    display: none;
  }
  .shell {
    display: block;
    min-height: calc(100vh - 60px);
  }
  .sidebar {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 12px;
  }
  .sidebar-head {
    padding: 0;
  }
  .client-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    max-height: 160px;
  }
  .client {
    min-width: 195px;
    max-width: 240px;
  }
  .side-note {
    display: none;
  }
  .sidebar > button {
    width: auto;
    align-self: flex-start;
  }
  .main {
    padding: 24px 16px;
  }
  .client-heading {
    margin-bottom: 18px;
  }
  .client-heading > .row {
    align-items: flex-start;
  }
  .client-heading button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .panel {
    padding: 17px;
  }
  .options {
    grid-template-columns: 1fr 130px;
    gap: 10px;
  }
  .console-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .console-footer button {
    width: 100%;
  }
  .tabs {
    gap: 20px;
    margin-bottom: 22px;
  }
  .tab {
    font-size: 12px;
  }
  .job {
    grid-template-columns: 76px minmax(0, 1fr) 80px;
    font-size: 11px;
    gap: 6px;
  }
  .client-heading .info {
    gap: 7px 15px;
  }
  .archive-list th,
  .archive-list td {
    padding: 12px 6px;
  }
  .network {
    max-width: 110px;
    text-align: right;
  }
  .file-toolbar {
    flex-wrap: wrap;
  }
  .file-toolbar .grow {
    flex-basis: 100%;
  }
  .login {
    margin-top: 7vh;
  }
  .row.end {
    flex-wrap: wrap;
  }
  dialog {
    padding: 22px;
  }
  dialog .dialog-footer {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before {
    animation: none !important;
    transition: none !important;
  }
  button:active {
    transform: none;
  }
  .loading:before {
    border-right-color: currentColor;
  }
}

.path-label {
  padding: 10px 0;
  overflow-wrap: anywhere;
  min-height: 42px;
  line-height: 1.5;
}
.login #show-password {
  width: auto;
  flex: none;
  font-size: 12px;
  padding: 8px 10px;
}
.file-toolbar .grow {
  flex-basis: 100%;
}
