:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #5b6676;
  --line: #d5dae1;
  --accent: #0b5cad;
  --accent-text: #ffffff;
  --error: #b42318;
  --error-bg: #fdecea;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --card: #1b2129;
    --text: #e6e9ee;
    --muted: #9aa5b4;
    --line: #333c48;
    --accent: #5aa2f0;
    --accent-text: #0b1420;
    --error: #ff8a80;
    --error-bg: #3a1d1b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line);
}
.app { font-weight: 600; }
.langs { display: flex; gap: 6px; }
.lang {
  padding: 6px 10px; border-radius: 6px; font-size: 15px;
  color: var(--accent); text-decoration: none; border: 1px solid var(--line);
}
.lang.current { color: var(--text); background: var(--bg); font-weight: 600; }
main { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-size: 24px; line-height: 1.25; margin: 4px 0 8px; }
.lead { color: var(--muted); margin-top: 0; }
.site { margin: 0; color: var(--muted); font-size: 15px; }
.back { margin: 0 0 8px; }
.back a { color: var(--accent); text-decoration: none; }
.reports { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.reports a {
  display: block; padding: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); text-decoration: none;
}
.reports span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
form { margin-top: 16px; }
.field {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; margin-bottom: 12px;
}
.field.invalid { border-color: var(--error); }
label, legend { display: block; font-weight: 600; margin-bottom: 6px; }
fieldset { border: 0; padding: 0; margin: 0; }
.req { font-weight: 400; font-style: normal; color: var(--muted); font-size: 14px; }
input[type=text], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 46px;
}
textarea { resize: vertical; }
input[type=file] { width: 100%; font-size: 16px; padding: 8px 0; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; padding: 6px 0; margin: 0; }
label.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.hint { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.error { color: var(--error); margin: 6px 0 0; font-size: 15px; }
.alert {
  background: var(--error-bg); color: var(--error); border: 1px solid var(--error);
  border-radius: 10px; padding: 12px 14px; margin: 12px 0;
}
button, .button {
  display: block; width: 100%; text-align: center; font: inherit; font-weight: 600;
  padding: 14px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-text);
  text-decoration: none; cursor: pointer; margin-top: 8px;
}
