:root {
  --ink: #14211d;
  --muted: #60736c;
  --line: #d8e5df;
  --bg: #f4f8f5;
  --panel: #ffffff;
  --brand: #105b49;
  --brand-dark: #0a3c32;
  --soft: #e7f3ed;
  --warn: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.topbar {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px 24px;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.language-switch {
  align-items: center;
  display: flex;
  gap: 6px;
}

.language-switch a {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.language-switch a.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
}

h2 {
  font-size: 21px;
  line-height: 1.2;
}

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

.workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  margin: 0 auto;
  max-width: 1180px;
  padding: 20px;
}

.panel,
.login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.stack {
  display: grid;
  gap: 18px;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

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

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

.check-row {
  align-items: center;
  display: flex;
  gap: 9px;
}

.check-row input {
  min-height: 0;
  width: auto;
}

.check-row span {
  color: var(--ink);
  font-size: 14px;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid #bfd2ca;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 11px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.file-drop {
  align-items: center;
  border: 1px dashed #79a798;
  border-radius: 8px;
  color: var(--brand);
  cursor: pointer;
  justify-items: center;
  min-height: 128px;
  padding: 20px;
  text-align: center;
}

.file-drop input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.file-title {
  color: var(--brand);
  font-size: 18px;
  font-weight: 800;
}

.file-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.actions,
.section-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

button {
  background: var(--brand);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 16px;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.secondary {
  background: var(--brand-dark);
}

.ghost {
  background: var(--soft);
  color: var(--brand-dark);
}

.result {
  color: var(--brand);
  font-weight: 700;
  margin-top: 12px;
}

.error {
  color: var(--warn);
}

.summary {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
}

.summary div {
  background: var(--soft);
  border-radius: 8px;
  padding: 14px;
}

.summary strong,
.summary span {
  display: block;
}

.summary strong {
  font-size: 30px;
}

.summary span,
.muted {
  color: var(--muted);
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.item {
  border-left: 4px solid var(--brand);
  background: #f8fbf9;
  padding: 11px 12px;
}

.item strong,
.item span,
.item small {
  display: block;
}

.item span,
.item small {
  color: var(--muted);
  margin-top: 4px;
}

.login-body {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  margin: 0 auto;
  max-width: 420px;
  width: 100%;
}

.login-card form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

@media (max-width: 820px) {
  .workspace {
    grid-template-columns: 1fr;
    padding: 12px;
  }

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

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .top-actions {
    align-items: flex-end;
    flex-direction: column;
  }
}
