:root {
  --bg: #f4f7f6;
  --panel: #ffffff;
  --text: #17211f;
  --muted: #5f6f6a;
  --line: #dce5e1;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(22, 34, 31, 0.08);
}

.form-panel,
.compact {
  max-width: 640px;
  margin: 0 auto;
}

.admin-panel {
  min-height: 520px;
}

.topline {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

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

h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
}

.vote-form {
  display: grid;
  gap: 16px;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--text);
  font: inherit;
  background: #fbfdfc;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.16);
  border-color: var(--accent);
}

button,
.actions a,
.admin-link,
.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

button {
  border: 0;
  padding: 12px 16px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

.admin-link,
.back-link,
.actions a {
  border: 1px solid var(--line);
  padding: 9px 12px;
  color: var(--text);
  background: #fff;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #e8f6f2;
  color: #09594f;
  font-weight: 700;
}

.error {
  margin: 16px 0;
  color: var(--error);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: #eef5f2;
  color: #32403c;
  font-size: 12px;
  text-transform: uppercase;
}

.choice {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e8f6f2;
  color: #09594f;
  font-weight: 700;
}

.empty {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding: 10px 0;
  }

  .panel {
    padding: 16px;
  }

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

  .admin-link,
  .actions a {
    width: 100%;
  }
}
