:root {
  --cream: #feffef;
  --blue: #1e7ebb;
  --orange: #df5e1c;
  --mint: #51c4a7;
  --yellow: #fdd059;
  --sage: #b1d9b7;
  --ink: #2b3a42;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #e8f0e6;
  color: var(--ink);
  font-family: Nunito, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}
main {
  max-width: 880px;
  margin: 48px auto;
  padding: 30px;
  background: var(--cream);
  border: 3px solid var(--sage);
  border-radius: 28px;
  box-shadow: 0 12px 30px #244e3812;
}
.brand {
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
}
h1 {
  font-size: 32px;
  color: var(--blue);
  margin: 10px 0;
}
h2 {
  font-size: 22px;
}
label {
  display: block;
  font-weight: 700;
  margin: 16px 0 6px;
}
input,
button,
a.button {
  font: inherit;
  border-radius: 12px;
  padding: 12px 18px;
  min-height: 48px;
}
input {
  border: 2px solid var(--sage);
  width: 100%;
  max-width: 460px;
  background: white;
  font-size: 24px;
  letter-spacing: 2px;
}
button,
a.button {
  display: inline-block;
  background: var(--blue);
  color: white;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  margin: 12px 8px 0 0;
}
button.secondary {
  background: white;
  color: var(--blue);
  border: 2px solid var(--sage);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
a {
  color: #17699e;
  word-break: break-all;
}
.note {
  color: #56645e;
  font-size: 15px;
}
.message {
  white-space: pre-line;
  min-height: 28px;
}
.error {
  color: #a82c1c;
}
.device {
  margin: 16px 0;
  padding: 20px;
  background: white;
  border: 2px solid var(--sage);
  border-radius: 18px;
}
.device h2 {
  margin: 0;
}
.device p {
  margin: 6px 0;
}
.empty {
  padding: 24px;
  background: white;
  border-radius: 16px;
}
.pill {
  display: inline-block;
  background: var(--yellow);
  border-radius: 20px;
  padding: 4px 14px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
dialog {
  max-width: 480px;
  border: 3px solid var(--sage);
  border-radius: 20px;
  padding: 28px;
}
dialog::backdrop {
  background: #142e3a88;
}
[hidden] {
  display: none !important;
}
#course-frame {
  position: fixed;
  inset: 0;
  border: 0;
  width: 100%;
  height: 100%;
  background: var(--cream);
}
#activation-root {
  position: relative;
  z-index: 5;
}
@media (max-width: 600px) {
  main {
    margin: 18px 12px;
    padding: 22px;
  }
  h1 {
    font-size: 28px;
  }
  input {
    max-width: 100%;
  }
}

dialog.usage-dialog {
  max-width: 800px;
  max-height: 88vh;
  overflow: auto;
}
.usage-dialog table {
  width: 100%;
  border-collapse: collapse;
}
.usage-dialog td {
  border-bottom: 1px solid #b1d9b7;
  padding: 8px;
}
label.ack {
  display: flex;
  align-items: center;
  gap: 8px;
}
label.ack input {
  width: 22px;
  min-height: 22px;
  margin: 0;
}
#school-name {
  font-size: 20px;
  letter-spacing: 0;
}
#ppt-status {
  white-space: pre-line;
}
