:root {
  color: #172033;
  background: #eef5f7;
  font-family: "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 32px 20px 48px;
}

header {
  margin-bottom: 30px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 2rem;
}

h2 {
  font-size: 1.2rem;
}

.eyebrow {
  margin-bottom: 8px;
  color: #0c5c73;
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.session-panel,
.summary-card,
.registration-section,
.registration-details {
  background: #fff;
  border: 1px solid #cddde2;
  border-radius: 14px;
  padding: 18px;
}

.session-panel {
  margin-bottom: 24px;
}

.summary-card h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.count {
  margin-bottom: 0;
  color: #0c5c73;
  font-size: 1.35rem;
  font-weight: 700;
}

.status {
  margin: 0 0 16px;
  color: #49616a;
}

.primary-action {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  background: #0c5c73;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.7;
}

.registration-section,
.registration-details {
  margin-top: 24px;
}

.search-label {
  display: block;
  margin-bottom: 8px;
  color: #49616a;
}

.search-input {
  width: 100%;
  border: 1px solid #9cbac3;
  border-radius: 10px;
  padding: 11px 12px;
  color: inherit;
  font: inherit;
}

.registration-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.registration-item {
  width: 100%;
  border: 1px solid #cddde2;
  border-radius: 10px;
  padding: 12px;
  color: inherit;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.registration-item strong,
.registration-item span {
  display: block;
}

.registration-item span {
  margin-top: 4px;
  color: #49616a;
  font-size: 0.9rem;
}

.details-list {
  display: grid;
  grid-template-columns: minmax(5rem, auto) 1fr;
  gap: 8px 12px;
  margin: 0 0 18px;
}

.details-list dt {
  color: #49616a;
}

.details-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.pdf-status {
  min-height: 1.5em;
  color: #49616a;
}

.pdf-link {
  display: inline-block;
  margin-top: 12px;
  color: #0c5c73;
  font-weight: 700;
}

@media (max-width: 520px) {
  main {
    padding: 24px 16px 40px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}
