:root {
  font:
    16px/1.55 Inter,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #162d2d;
  background: #f3f5ef;
  --teal: #125d54;
  --line: #d3dbd3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #173d38;
  color: #fff;
}
header > div,
main {
  width: min(100% - 32px, 900px);
  margin: auto;
}
header > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  font-weight: 650;
}
header button {
  margin-left: auto;
  color: white;
  background: transparent;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #b9d39b;
  border-radius: 50%;
  color: #d1e2bb;
  font: 24px monospace;
}
main {
  padding: 34px 0 70px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
h2 {
  font-size: 20px;
  margin-bottom: 14px;
}
section {
  margin-bottom: 28px;
}
.panel,
article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.panel {
  border-top: 3px solid var(--teal);
}
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 8px 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  background: #e9efea;
  color: #24453d;
  font-weight: 600;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.primary {
  background: var(--teal);
  color: white;
}
input,
select {
  width: 100%;
  border: 1px solid #a5b4ac;
  border-radius: 8px;
  background: white;
  padding: 10px;
  color: inherit;
  min-height: 44px;
}
.row {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.row > label {
  flex: 1;
  min-width: 120px;
  margin: 0;
}
.row select,
.row input {
  display: block;
  margin-top: 6px;
}
.row .primary {
  min-height: 47px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #79973d;
  outline-offset: 2px;
}
.login {
  max-width: 430px;
  margin: 9vh auto;
}
.login button {
  width: 100%;
  margin-top: 18px;
}
.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.bar h2 {
  margin: 0 auto 0 0;
}
.bar select {
  width: auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 315px), 1fr));
  gap: 12px;
}
.badge {
  display: inline-block;
  font-size: 13px;
  background: #eff2ea;
  color: #41514a;
  border-radius: 30px;
  padding: 3px 11px;
}
.live {
  background: #dff1dc;
  color: #205827;
}
.ended {
  background: #f7e7dc;
  color: #854027;
}
.code {
  font:
    600 clamp(16px, 3.8vw, 20px) / 1.4 ui-monospace,
    monospace;
  display: block;
  margin: 14px 0;
  overflow-wrap: anywhere;
  user-select: all;
}
dl {
  font-size: 14px;
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 4px;
  color: #53675d;
}
dd {
  margin: 0;
}
.actions {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  gap: 8px;
}
.warn {
  margin-left: auto;
  background: transparent;
  color: #8a432d;
}
.message:not(:empty) {
  margin: 12px 0;
  padding: 10px 14px;
  background: #f2e8d5;
  border-radius: 8px;
}
.empty {
  padding: 20px;
  color: #5e7067;
}
dialog {
  width: min(90vw, 420px);
  border: 0;
  border-radius: 14px;
  padding: 22px;
}
dialog::backdrop {
  background: #122c2780;
}
dialog .actions {
  justify-content: flex-end;
}
.bar button {
  padding-inline: 10px;
}
[hidden] {
  display: none !important;
}
