:root {
  color-scheme: light;
  --ink: #15201c;
  --muted: #5e6c66;
  --line: #d9e1dc;
  --bg: #f6f7f4;
  --panel: #ffffff;
  --accent: #25745a;
  --accent-2: #9a5b3f;
  --warn: #a45f00;
  --bad: #a33636;
  --good: #25745a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: end;
  padding: 24px 0 28px;
}

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

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: 44px; line-height: 1.04; }
h2 { margin-bottom: 18px; font-size: 22px; }
h3 { margin-bottom: 10px; font-size: 17px; }
.lead { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.55; }

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

.status-card {
  padding: 18px;
}

.status-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.workspace {
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.panel { padding: 22px; }

.dropzone {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed #aebbb5;
  border-radius: 8px;
  background: #fbfcfa;
  cursor: pointer;
}

.dropzone input { width: 100%; }
.drop-title { font-weight: 700; }
.drop-hint { color: var(--muted); font-size: 14px; line-height: 1.4; }

.preview-wrap {
  position: relative;
  margin: 18px 0;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #eef2ef;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.face-guide {
  position: absolute;
  inset: 11% 22%;
  border: 2px solid rgba(37, 116, 90, .75);
  border-radius: 50%;
  pointer-events: none;
}

.fields {
  display: grid;
  gap: 12px;
}

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

select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

button {
  width: 100%;
  height: 46px;
  margin-top: 18px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  background: #aebbb5;
  cursor: not-allowed;
}

.note, .empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.note { margin: 12px 0 0; }
.empty { padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.result-stack { display: grid; gap: 14px; }

.result-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.bar {
  flex: 1;
  height: 9px;
  border-radius: 999px;
  background: #e4ebe7;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef4f1;
  color: var(--ink);
  font-size: 13px;
}

.pill.warn { background: #fff4df; color: var(--warn); }
.pill.bad { background: #fdecec; color: var(--bad); }
.pill.good { background: #e9f5ef; color: var(--good); }

pre {
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #111a17;
  color: #d7eee5;
  font-size: 12px;
}

@media (max-width: 900px) {
  .intro, .workspace { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}
