:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    sans-serif;
  color: #172b49;
  background: #f5f7fb;
  font-size: 17px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d48900;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
.demo {
  padding: 12px 20px;
  background: #e6edfa;
  color: #183f78;
  text-align: center;
  font-size: 0.85rem;
}
header {
  max-width: 980px;
  margin: auto;
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.brand {
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  color: #183f88;
  letter-spacing: -0.04em;
}
.brand span {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0;
  color: #465b78;
  font-weight: 500;
}
.quiet {
  background: white;
  border: 1px solid #bdcadd;
  border-radius: 10px;
  padding: 9px 14px;
  color: #254870;
  min-height: 44px;
}
main {
  max-width: 880px;
  margin: auto;
  padding: 12px 24px 40px;
}
h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 8px 0 15px;
  letter-spacing: -0.05em;
}
h2 {
  font-size: 1.2rem;
  margin: 0 0 18px;
}
.eyebrow {
  color: #315b99;
  font-size: 0.87rem;
  font-weight: 700;
  margin: 0;
}
.intro {
  margin: 14px 0 32px;
}
.intro p:last-child {
  color: #465b78;
  margin: 0;
}
.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.choice {
  background: white;
  border: 1px solid #ced8e7;
  border-radius: 16px;
  text-align: left;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 162px;
  color: #172b49;
}
.choice:hover {
  border-color: #255ab5;
  background: #f0f5ff;
}
.choice strong {
  font-size: 1.05rem;
  margin-top: 14px;
}
.choice > span:not(.number) {
  color: #586b85;
  font-size: 0.88rem;
}
.number {
  font-size: 0.82rem;
  color: #3865a6;
}
.choice b {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 1.4rem;
  color: #255ab5;
}
.hint {
  font-size: 0.85rem;
  color: #52647d;
}
.records {
  margin-top: 38px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
}
.filter {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
input,
select {
  background: white;
  color: #172b49;
  border: 1px solid #aabbd3;
  border-radius: 8px;
  padding: 10px;
  min-height: 46px;
  max-width: 100%;
}
.empty {
  border: 1px dashed #b7c7dd;
  background: #edf2f9;
  padding: 30px 22px;
  border-radius: 14px;
}
.empty strong {
  display: block;
}
.empty p {
  margin: 6px 0 0;
  color: #52647d;
}
.card {
  background: white;
  border: 1px solid #ced8e7;
  border-radius: 14px;
  padding: 20px;
  margin: 14px 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
}
.card img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 9px;
}
.thumb {
  padding: 0;
  border: 0;
  background: transparent;
}
.sample-thumb {
  background: #edf2fa;
  border-radius: 9px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #506785;
  font-size: 0.85rem;
  min-height: 110px;
}
.card h3 {
  font-size: 1.08rem;
  margin: 4px 0;
}
.card p {
  margin: 4px 0;
  font-size: 0.9rem;
}
.badge {
  color: #315b99;
  font-size: 0.83rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.actions button {
  font-size: 0.86rem;
}
.reviewed {
  color: #25604c;
}
.danger {
  color: #9c3333;
}
aside {
  padding: 22px;
  border-left: 4px solid #2f5d9e;
  background: #eaf0fa;
  margin-top: 32px;
  border-radius: 0 12px 12px 0;
}
aside p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #465b78;
}
.status {
  min-height: 1.6em;
  color: #244e7b;
}
footer {
  text-align: center;
  padding: 12px 20px 32px;
  color: #5b6b80;
  font-size: 0.8rem;
}
dialog {
  border: 1px solid #c9d4e5;
  border-radius: 20px;
  padding: 26px;
  max-width: 520px;
  width: calc(100% - 24px);
  max-height: 92vh;
  color: #172b49;
}
dialog::backdrop {
  background: #172b4977;
}
form > label {
  display: block;
  margin-bottom: 16px;
}
form > label input:not([type="file"]),
form > label select {
  display: block;
  width: 100%;
  margin-top: 6px;
}
form > p {
  font-weight: 600;
}
form .hint {
  font-weight: 400;
}
.photo-pick {
  background: #edf3ff;
  border: 1px dashed #859fc8;
  padding: 16px;
  border-radius: 10px;
}
.photo-pick input {
  width: 100%;
  font-size: 0.85rem;
  border: 0;
  padding: 10px 0 0;
  background: transparent;
}
#preview,
#full-photo {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 10px;
}
.primary {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 11px;
  background: #1d4c9d;
  color: white;
  font-weight: 700;
  min-height: 52px;
}
.error {
  color: #a33131;
  font-weight: 500 !important;
}
.placeholder {
  background: #edf2fa;
  padding: 28px;
  text-align: center;
  border-radius: 9px;
}
@media (max-width: 620px) {
  header {
    padding: 18px;
  }
  .brand {
    font-size: 1.2rem;
  }
  header button {
    font-size: 0.82rem;
    padding: 8px 11px;
  }
  main {
    padding: 8px 18px 24px;
  }
  h1 {
    font-size: 1.8rem;
  }
  .choices {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .choice {
    min-height: 97px;
    padding: 15px 18px 15px 57px;
    justify-content: center;
  }
  .number {
    position: absolute;
    left: 18px;
    top: 23px;
  }
  .choice strong {
    margin: 0;
    padding-right: 25px;
  }
  .choice b {
    top: 25px;
  }
  .intro {
    margin: 10px 0 24px;
  }
  .records {
    margin-top: 28px;
  }
  .card {
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 15px;
  }
  .card img {
    width: 80px;
    height: 90px;
  }
  .sample-thumb {
    min-height: 90px;
  }
  .section-head {
    gap: 8px;
  }
  .section-head .quiet {
    font-size: 0.82rem;
    padding: 8px 10px;
  }
  dialog {
    padding: 20px;
  }
}
#login {
  max-width: 480px;
  margin: 36px auto;
}
#coach > label {
  display: block;
  margin-bottom: 20px;
}
#coach select {
  display: block;
  width: 100%;
  margin-top: 8px;
}
details {
  background: white;
  border: 1px solid #ced8e7;
  border-radius: 12px;
  padding: 18px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
}
#member-form {
  margin: 14px 0;
}
#invite-result {
  background: #edf3ff;
  padding: 16px;
  border-radius: 10px;
  margin: 18px 0;
}
#invite-result input {
  display: block;
  width: 100%;
  margin: 8px 0 14px;
}
#cleanup {
  margin-top: 18px;
}
progress {
  width: 100%;
  height: 20px;
}
#more {
  width: 100%;
  margin: 12px 0;
}

.admin-card {
  background: white;
  border: 1px solid #ced8e7;
  border-radius: 12px;
  padding: 18px;
  margin: 14px 0;
}
.admin-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}
.admin-card p {
  font-size: 0.87rem;
  margin: 5px 0;
}
.audit-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.audit-filter label input,
.audit-filter label select,
#team-invite-link {
  width: 100%;
  display: block;
}
#admin-panel h2 {
  margin-top: 28px;
}
#team-invite-result {
  background: #edf3ff;
  padding: 18px;
  border-radius: 12px;
  margin: 18px 0;
}
@media (max-width: 480px) {
  .audit-filter {
    grid-template-columns: 1fr;
  }
  header .actions {
    justify-content: flex-end;
  }
  header {
    gap: 10px;
  }
}
