:root {
  font-family: system-ui, sans-serif;
  color: #172430;
  background: #edf2f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.shell {
  max-width: 640px;
  min-height: 100vh;
  margin: auto;
  padding: 24px 18px 48px;
  background: #fff;
}
header {
  border-bottom: 1px solid #d9e2e5;
  padding-bottom: 16px;
}
.eyebrow {
  margin: 0;
  color: #426a72;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
h1 {
  margin: 8px 0;
  font-size: 1.8rem;
}
h2 {
  font-size: 1.12rem;
  margin: 24px 0 14px;
}
.notice {
  margin: 20px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #e8f4f5;
}
.notice.error {
  background: #fff0eb;
  color: #9d3016;
}
.notice.success {
  background: #e7f5ea;
  color: #216b37;
}
.teams {
  display: grid;
  gap: 9px;
}
.team {
  width: 100%;
  text-align: left;
  border: 1px solid #b8c9ce;
  border-radius: 9px;
  background: #fff;
  padding: 14px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.team.active {
  border-color: #006d78;
  box-shadow: inset 0 0 0 1px #006d78;
  background: #effbfb;
}
.team small {
  display: block;
  margin-top: 4px;
  color: #52626b;
}
form {
  margin-top: 22px;
  padding: 18px;
  border-radius: 12px;
  background: #f4f7f8;
}
.teams form {
  margin: 0 0 8px;
}
label {
  display: block;
  margin: 0 0 9px;
  font-weight: 700;
}
.score-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #899ea6;
  border-radius: 7px;
  padding: 8px 12px;
  font: inherit;
  font-size: 1.25rem;
}
input:focus,
button:focus-visible {
  outline: 3px solid #62bac2;
  outline-offset: 2px;
}
.subtle {
  color: #52626b;
  font-size: 0.88rem;
}
#saved {
  min-height: 1.4em;
}
#save {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #006d78;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
#save:disabled {
  opacity: 0.55;
  cursor: wait;
}
