:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #20252b;
  background: #f3f5f7;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }

.page-shell {
  width: min(1060px, calc(100% - 32px));
  margin: 40px auto;
}

.card {
  background: #fff;
  border: 1px solid #dce2e8;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 28px rgba(30, 44, 58, 0.07);
  margin-bottom: 20px;
}

h1, h2 { margin-top: 0; }
.muted { color: #66717c; }
.hidden { display: none !important; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 7px; font-weight: 650; }
input[type="text"], input[type="password"], input[type="number"], select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #bac4ce;
  border-radius: 8px;
  background: #fff;
}

.upload {
  border: 2px dashed #9eabb7;
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  background: #f8fafb;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.button, button {
  border: 0;
  border-radius: 8px;
  padding: 10px 17px;
  background: #245f8f;
  color: #fff;
  font-weight: 700;
}
button.secondary, .button.secondary { background: #697681; }
button:disabled { opacity: .5; cursor: not-allowed; }
.message { min-height: 24px; margin-top: 12px; color: #a52a2a; }
.message.ok { color: #246b3b; }
.link-box { padding: 13px; border-radius: 8px; background: #edf5fb; overflow-wrap: anywhere; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid #e2e7eb; text-align: left; vertical-align: top; }
th { color: #56616c; }

.participant-shell { width: min(620px, calc(100% - 32px)); margin: 10vh auto; }

@media (max-width: 700px) {
  .grid.two { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
}
