:root {
  color-scheme: light;
  font: 16px/1.5 system-ui, sans-serif;
  color: #172920;
  background: #eff3ed;
  --muted: #516458;
  --accent: #1e6544;
  --border: #cedbd0;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(24px, 9vh, 100px) 16px 24px;
}

.card {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: clamp(24px, 6vw, 44px);
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 44px #183d2810;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

p { margin: 0 0 20px; }
.muted { color: var(--muted); }

.picker, .file-details {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 20px;
  margin: 24px 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-wrap: anywhere;
}

.picker {
  position: relative;
  background: #f3f7f3;
  border-style: dashed;
}

.picker:hover, .picker.dragging { background: #e5efe7; }
.picker:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

#file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

button, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-weight: 600;
  color: white;
  background: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

button:disabled { opacity: 0.55; cursor: default; }
button:not(:disabled):hover, .button:hover { filter: brightness(0.87); }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.danger { background: #963c30; }
.secondary { background: #eef5ef; color: #204e35; border-color: var(--border); }

progress {
  display: block;
  width: 100%;
  margin-top: 20px;
  accent-color: var(--accent);
}

.status { margin: 12px 0 0; }
.error { color: #963c30; }

.result {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.result label { font-weight: 600; }
.result p { margin: 4px 0 0; }

.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.copy-row input {
  flex: 1 1 160px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: inherit;
  font: inherit;
}
