@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;700&display=swap");
:root {
  --teal: #83c9c7;
  --teal-dark: #337f80;
  --coral: #e98591;
  --blue: #7488c1;
  --yellow: #f2d34e;
  --ink: #293b4c;
  --muted: #667784;
  --paper: #f8fbfb;
  --line: #e2ebeb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: linear-gradient(145deg, #f7fbfa, #fff 50%, #fff9f7);
  color: var(--ink);
  font: 16px "DM Sans", "Noto Sans TC", sans-serif;
  min-height: 100vh;
}
.top {
  max-width: 1160px;
  margin: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 700;
}
.brand img {
  /*width: 78px;*/
  height: 58px;
  object-fit: contain;
}
nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
nav a,
a {
  color: var(--teal-dark);
}
nav a {
  text-decoration: none;
  font-size: 14px;
}
.wrap {
  max-width: 1000px;
  margin: 28px auto 64px;
  padding: 0 22px;
}
.hero {
  padding: 42px 28px 30px;
  background: radial-gradient(
      circle at 90% 30%,
      #fce4e5 0 11%,
      transparent 11.5%
    ),
    radial-gradient(circle at 84% 42%, #e2f3f2 0 20%, transparent 20.5%);
  border-radius: 24px;
}
.eyebrow {
  color: var(--coral);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 12px;
}
.hero h1 {
  font-size: clamp(25px, 5vw, 52px);
  line-height: 1.18;
  margin: 10px 0;
  color: #334357;
}
.hero h1 span {
  font-size: 0.66em;
  color: var(--teal-dark);
}
.hero p {
  color: var(--muted);
  line-height: 1.75;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px #48666a0d;
  border-radius: 20px;
  padding: 30px;
  margin: 18px 0;
}
.card h1 {
  font-size: 30px;
}
.card h2 {
  font-size: 21px;
  margin-top: 0;
}
.narrow {
  max-width: 650px;
  margin: 0 auto;
}
.center {
  text-align: center;
  padding: 54px 26px;
}
.check {
  font-size: 42px;
  background: #e2f3f2;
  color: var(--teal-dark);
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin: auto;
}
form {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 7px;
  font-weight: 600;
  font-size: 14px;
}
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d6e2e3;
  border-radius: 10px;
  padding: 12px 13px;
  width: 100%;
  min-height: 46px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #83c9c733;
  border-color: var(--teal-dark);
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 11px;
  background: var(--teal-dark);
  color: #fff !important;
  padding: 13px 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  width: fit-content;
  min-height: 46px;
}
.btn:hover {
  background: #286c6d;
}
.btn.secondary {
  background: #eaf4f4;
  color: var(--teal-dark) !important;
}
.btn.red {
  background: #b94e5b;
}
.alert {
  background: #fff4ec;
  border-left: 4px solid var(--coral);
  border-radius: 8px;
  padding: 13px 15px;
  margin: 14px 0;
  line-height: 1.5;
}
.fine,
small {
  color: var(--muted);
  font-size: 13px;
}
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pill {
  background: #eaf4f4;
  color: var(--teal-dark);
  padding: 10px 14px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid.two {
  grid-template-columns: repeat(2, 1fr);
}
.stat {
  margin: 0;
  padding: 22px;
}
.stat h2 {
  font-size: 16px;
}
.stat strong,
.grid.two strong {
  font-size: 32px;
  color: var(--teal-dark);
}
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toggle input {
  width: auto;
  min-height: 0;
}
.danger {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 680px;
  margin: 18px 0;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}
th {
  color: var(--muted);
  background: #f7fafa;
}
.linkbtn {
  border: 0;
  background: none;
  color: var(--teal-dark);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.scanner {
  max-width: 520px;
}
.scanner video {
  width: 100%;
  max-height: 360px;
  background: #19242a;
  border-radius: 14px;
  margin: 10px 0;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px max(calc((100vw - 956px) / 2), 24px);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 700px) {
  .top {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 18px;
  }
  .brand img {
    /*width: 66px;*/
    height: 33px;
  }
  nav {
    gap: 12px;
  }
  .wrap {
    padding: 0 14px;
    margin-top: 14px;
  }
  .hero {
    padding: 28px 18px;
  }
  .card {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .admin-head {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  footer {
    padding: 20px;
    flex-direction: column;
  }
}

nav a {
  padding: 8px 0;
  line-height: 1.35;
}
nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -2px var(--coral);
}
.hero-home {
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero-home p {
  max-width: 650px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 38px 0 14px;
}
.section-heading h2 {
  margin: 5px 0;
  font-size: 27px;
}
.section-heading > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.session-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.session-card {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.session-card h3 {
  font-size: 20px;
  margin: 3px 0 12px;
}
.session-card h3 small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 5px;
}
.session-card p {
  line-height: 1.5;
}
.session-time {
  font-size: 22px;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0;
}
.session-status {
  display: inline-block;
  width: fit-content;
  border-radius: 999px;
  background: #eaf4f4;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
}
.session-card .session-status {
  margin-top: auto;
}
.session-status.is-full {
  background: #fff1f1;
  color: #a34955;
}
.home-links {
  margin-top: 24px;
}
.home-links .card {
  margin: 0;
}
.home-links p {
  line-height: 1.65;
}
.map-placeholder {
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(140deg, #eaf6f5, #fff 60%, #fff3f2);
}
.map-symbol {
  font-size: 76px;
  line-height: 1;
  color: var(--teal-dark);
}
.map-placeholder p {
  max-width: 540px;
  line-height: 1.7;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.detail-row p {
  margin: 8px 0 0;
  line-height: 1.6;
  color: var(--muted);
}
@media (max-width: 700px) {
  .top nav {
    gap: 4px 14px;
  }
  .top nav a {
    font-size: 12px;
  }
  .hero-home {
    padding-top: 34px;
    padding-bottom: 34px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    margin-top: 28px;
  }
  .session-grid {
    grid-template-columns: 1fr;
  }
  .detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
}
