:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #e4ebe6;
  background: #101612;
  color-scheme: dark;
  font-synthesis: none;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 28px;
}
header {
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #8fbd9d;
}
h1 {
  margin: 8px 0;
  font-size: 34px;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
header p {
  margin: 0;
  color: #a2b0a7;
}
h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.35fr);
  gap: 20px;
  align-items: start;
}
.panel {
  border: 1px solid #2c3a31;
  border-radius: 16px;
  padding: 24px;
  background: #192119;
  box-shadow: 0 2px 4px #0000002e;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button:focus-visible,
input:focus-visible,
pre:focus-visible {
  outline: 3px solid #83c99a;
  outline-offset: 4px;
}
.dropzone {
  width: 100%;
  min-height: 260px;
  margin-top: 20px;
  padding: 12px;
  border: 1.5px dashed #4c6653;
  border-radius: 10px;
  background: #141b16;
  color: #aab9ae;
  display: grid;
  place-items: center;
}
.dropzone:hover:not(:disabled),
.dropzone.dragging {
  background: #1b3021;
  border-color: #70b983;
}
.drop-prompt {
  display: grid;
  justify-items: center;
  gap: 5px;
  font-size: 13px;
}
.drop-prompt strong {
  font-size: 15px;
  color: #d2e5d6;
}
.upload-icon {
  font-size: 30px;
  margin-bottom: 8px;
}
.dropzone img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  border-radius: 4px;
}
.file-info {
  font-size: 12px;
  color: #a0ada5;
  overflow-wrap: anywhere;
  margin: 12px 0 20px;
}
.primary {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #3e8c58;
  color: #f4fff6;
  font-weight: 600;
  font-size: 14px;
}
.primary:hover:not(:disabled) {
  background: #55a86d;
}
.hint {
  font-size: 11px;
  color: #8d9c92;
  margin: 14px 0 0;
}
.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  gap: 12px;
}
.copy {
  border: 1px solid #35443a;
  background: #1d281f;
  color: #d4e1d7;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
}
.copy:hover {
  background: #29392d;
}
.status {
  color: #9eaca2;
  font-size: 12px;
  margin-top: 8px;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
  border-block: 1px solid #2b372f;
  padding: 16px 0;
}
dt {
  color: #8d9c92;
  font-size: 11px;
}
dd {
  margin: 4px 0 0;
  font-size: 21px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
pre {
  margin: 0;
  border-radius: 8px;
  background: #111813;
  padding: 18px;
  overflow: auto;
  max-height: 600px;
  font-size: 12px;
  line-height: 1.65;
  tab-size: 2;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.empty-result {
  min-height: 225px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #141b16;
  color: #89988e;
  font-size: 13px;
}
.empty-result > span {
  font-family: monospace;
  font-size: 28px;
  color: #687a6d;
}
.error {
  border: 1px solid #704136;
  background: #321c18;
  padding: 14px 18px;
  border-radius: 10px;
  color: #ffb39d;
  font-size: 14px;
}
@media (max-width: 720px) {
  main {
    padding: 28px 16px;
  }
  h1 {
    font-size: 28px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px;
  }
  dd {
    font-size: 19px;
  }
}

.api-token {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  color: #a2b0a7;
  font-size: 13px;
}
.api-token input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #4c6653;
  border-radius: 8px;
  background: #141b16;
  color: #e4ebe6;
  font: inherit;
}
.hint code {
  overflow-wrap: anywhere;
}
