:root {
  color-scheme: light;
  --bg: #f7f9fb;
  --panel: #ffffff;
  --ink: #18222f;
  --muted: #667384;
  --line: #d9e1ea;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --error: #b42318;
  --ok: #16703c;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(320px, 1fr);
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.workspace,
.resultsPane {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(24, 34, 47, 0.08);
}

.header,
.resultsHeader,
.settingsRow,
.actions,
.fileItem {
  display: flex;
  align-items: center;
}

.header,
.resultsHeader {
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 22px;
}

.status {
  min-width: 96px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.status[data-tone="ok"] {
  color: var(--ok);
  border-color: rgba(22, 112, 60, 0.3);
}

.status[data-tone="error"] {
  color: var(--error);
  border-color: rgba(180, 35, 24, 0.3);
}

.status[data-tone="busy"] {
  color: var(--accent);
  border-color: rgba(15, 118, 110, 0.3);
}

.settings,
.upload {
  margin-top: 24px;
}

.settings label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.settingsRow {
  gap: 8px;
}

.settingsRow input {
  min-width: 0;
  flex: 1;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
}

button {
  height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button.secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

button.secondary:hover {
  background: #eef4f7;
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 2px dashed #b8c7d6;
  border-radius: 8px;
  padding: 28px;
  background: #f9fbfc;
  cursor: pointer;
  text-align: center;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.dropIcon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #dff5f1;
  color: var(--accent-strong);
  font-weight: 800;
}

.dropTitle {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 800;
}

.dropMeta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.fileList {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.fileItem {
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}

.fileItem span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 700;
}

.actions {
  gap: 8px;
  margin-top: 20px;
}

.resultsPane {
  min-width: 0;
}

.results {
  min-height: 520px;
  max-height: calc(100vh - 150px);
  margin: 20px 0 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #101923;
  color: #d8f3e8;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 680px);
    padding: 16px 0;
  }

  .workspace,
  .resultsPane {
    padding: 18px;
  }

  .header,
  .resultsHeader,
  .settingsRow,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .status,
  button {
    width: 100%;
  }

  h1 {
    font-size: 30px;
  }

  .results {
    min-height: 360px;
    max-height: 520px;
  }
}
