:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f2;
  color: #17201b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  min-height: 100vh;
  padding: 28px;
}

.workspace {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #476555;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

.runtime {
  min-width: 148px;
  padding: 8px 10px;
  border: 1px solid #bcc9c0;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid #cbd6ce;
  background: #ffffff;
  border-radius: 8px;
}

.controls {
  padding: 18px;
}

.results {
  min-height: 620px;
  overflow: hidden;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  border: 1px solid #b7c4bc;
  border-radius: 6px;
  padding: 10px 11px;
  background: #fbfcfb;
  color: #17201b;
}

textarea {
  resize: vertical;
  min-height: 92px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}

.fileline {
  min-height: 22px;
  margin: -6px 0 14px;
  color: #5b6b61;
  font-size: 13px;
}

.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

button {
  min-height: 42px;
  border: 1px solid #175a47;
  border-radius: 6px;
  background: #1f725b;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

button:disabled {
  border-color: #c4ccc7;
  background: #d8ded9;
  color: #7b8780;
  cursor: not-allowed;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #cbd6ce;
}

.summary div {
  padding: 16px;
  border-right: 1px solid #cbd6ce;
}

.summary div:last-child {
  border-right: 0;
}

.summary span {
  display: block;
  margin-bottom: 8px;
  color: #5b6b61;
  font-size: 13px;
}

.summary strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.actions {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #cbd6ce;
}

.actions button {
  min-width: 120px;
  background: #224f73;
  border-color: #1b4465;
}

.status {
  min-height: 44px;
  padding: 12px 16px;
  border-bottom: 1px solid #cbd6ce;
  color: #4c5f55;
  font-size: 14px;
}

.tablewrap {
  max-height: 458px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid #e4e9e5;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #eef3ef;
  color: #27362e;
  z-index: 1;
}

th:nth-child(1),
td:nth-child(1) {
  width: 28%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 90px;
}

td {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.empty {
  color: #718078;
  font-family: inherit;
  text-align: center;
}

@media (max-width: 800px) {
  .shell {
    padding: 16px;
  }

  .topbar,
  .grid {
    display: block;
  }

  .runtime {
    margin-top: 12px;
    width: 100%;
  }

  .controls {
    margin-bottom: 16px;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  .summary div {
    border-right: 0;
  }

  .twocol,
  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
