:root {
  --page-bg: #f5f7fb;
  --form-bg: #ffffff;
  --heading: #172033;
  --info: #526070;
  --label: #263447;
  --input-bg: #ffffff;
  --input-border: #bac4d0;
  --input-text: #172033;
  --button-bg: #0f766e;
  --button-hover: #115e59;
  --button-text: #ffffff;
  --error: #b42318;
  --success: #067647;
  --links: #0f766e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--input-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
a { color: var(--links); }
.form-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.contact-card, .panel {
  width: min(720px, 100%);
  background: var(--form-bg);
  border: 1px solid #d7dee8;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .08);
}
h1, h2 { color: var(--heading); margin: 0 0 16px; }
h2 { font-size: 1.1rem; margin-top: 20px; }
.info, .privacy { color: var(--info); }
.field, form label { display: grid; gap: 7px; margin: 14px 0; color: var(--label); font-weight: 600; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--input-text);
  padding: 11px 12px;
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.options-editor {
  min-height: 220px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.45;
}
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--button-hover); }
.secondary { background: #455468; }
.notice { border-radius: 6px; padding: 12px; margin: 12px 0; }
.error { color: var(--error); background: #fff1f0; border: 1px solid #f5b5ae; }
.success { color: var(--success); background: #ecfdf3; border: 1px solid #a6f4c5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 22px;
  align-items: start;
}
.compact-choices {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 6px;
}
.choices label {
  display: grid;
  grid-template-columns: minmax(0, 18ch) auto;
  justify-content: start;
  align-items: center;
  column-gap: 0.65rem;
  min-height: 34px;
  margin: 0;
  font-weight: 600;
}
.compact-choices label {
  grid-template-columns: minmax(0, 20ch) auto;
  min-height: 30px;
  column-gap: 0.7rem;
}
.compact-choices input {
  justify-self: start;
}
.choice-spacer {
  min-height: 30px;
}
.option-field {
  margin-top: 18px;
  margin-bottom: 18px;
}
.choices input {
  width: auto;
  margin: 0;
  justify-self: start;
}
.consent { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.consent input { width: auto; margin-top: 5px; }
.admin-shell { width: min(1180px, 100%); margin: 0 auto; padding: 24px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-nav a { padding: 9px 12px; border-radius: 6px; background: #e7edf3; text-decoration: none; color: #263447; font-weight: 700; }
.panel { width: 100%; }
.stack { display: grid; gap: 12px; }
.filters, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.filters input { width: auto; min-width: 170px; }
.table-wrap { overflow-x: auto; border: 1px solid #d7dee8; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px; border-bottom: 1px solid #e4e9f0; text-align: left; vertical-align: top; }
th { background: #f8fafc; color: #263447; }
.login-card { max-width: 440px; }
@media (max-width: 640px) {
  .contact-card, .panel { padding: 20px; }
  .choices { grid-template-columns: 1fr; }
  .filters input, .filters button, .filters .button { width: 100%; }
}
