:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5c6773;
  --line: #d7dde5;
  --soft: #f4f7f6;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --warn: #a8550b;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7faf9 0%, #eef4f3 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.workspace,
.status-panel {
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #0f766e;
  color: white;
  font-weight: 800;
  font-size: 28px;
}

h1,
h2,
p {
  margin: 0;
}

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

.brand p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}

.panel,
.status-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(23, 32, 42, 0.08);
}

.panel {
  padding: 18px;
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 28px;
  border: 2px dashed #9fb5b1;
  border-radius: 8px;
  background: #f8fbfa;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: #eef8f6;
}

.dropzone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-title {
  display: block;
  font-size: 22px;
  font-weight: 750;
}

.drop-subtitle {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.file-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.privacy-note {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #f1a7a1;
  border-radius: 8px;
  background: #fff1f0;
  color: var(--error);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.privacy-note strong {
  color: var(--error);
}

.file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-size: 14px;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  flex: 0 0 auto;
  color: var(--muted);
}

.file-remove {
  min-height: 32px;
  border: 1px solid var(--line);
  padding: 0 10px;
  background: white;
  color: var(--muted);
  font-size: 13px;
}

.file-remove:hover {
  background: #fff1f0;
  color: var(--error);
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: white;
}

textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

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

button:disabled {
  cursor: progress;
  opacity: 0.64;
}

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

.status-panel {
  align-self: start;
  padding: 18px;
}

.status-panel h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.status {
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  line-height: 1.45;
}

.status.error {
  background: #fff1f0;
  color: var(--error);
}

.status.success {
  background: #ecfdf3;
  color: #067647;
}

.report {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.report-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: white;
  font-size: 13px;
  line-height: 1.4;
}

.report-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.report-row .warn {
  color: var(--warn);
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 24px 0;
  }

  h1 {
    font-size: 28px;
  }

  .actions {
    flex-direction: column;
  }

  .file-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .file-remove {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
