:root {
  color: #182220;
  background: #f3f1ea;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgb(198 218 207 / 55%), transparent 36rem),
    #f3f1ea;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button-link {
  min-height: 2.8rem;
  border: 0;
  border-radius: 0.8rem;
  padding: 0.75rem 1.1rem;
  color: #fff;
  background: #214f43;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

button:hover,
.button-link:hover {
  background: #183c33;
}

button:focus-visible,
.button-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #c8783e;
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0;
}

.page-header .actions {
  align-items: center;
  margin-top: 0;
}

.brand {
  margin: 0;
  color: #173e35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.page-main {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.narrow {
  width: min(34rem, 100%);
  margin: clamp(2rem, 8vh, 6rem) auto 0;
}

.panel,
.card {
  border: 1px solid rgb(23 62 53 / 14%);
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 1.2rem 3rem rgb(23 62 53 / 8%);
}

.panel {
  padding: clamp(1.4rem, 5vw, 2.5rem);
}

.panel h2,
.section-title,
.lesson-title {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

.muted,
.help-text,
.status {
  color: #56635f;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button-secondary {
  color: #214f43;
  background: #dfe9e5;
}

.button-secondary:hover {
  background: #d2e0da;
}

.login-details {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.qr-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  background: #fff;
}

.verification-code {
  margin: 0.35rem 0 0;
  color: #173e35;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.card-list {
  display: grid;
  gap: 0.85rem;
}

.card {
  padding: 1.15rem;
}

.card h3 {
  margin: 0 0 0.7rem;
}

.card .actions {
  margin-top: 0.85rem;
}

.owner-content {
  max-width: 50rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.owner-content h2,
.owner-content h3 {
  margin-top: 2rem;
  line-height: 1.25;
}

.owner-content blockquote {
  margin-left: 0;
  border-left: 0.3rem solid #c8783e;
  padding-left: 1rem;
  color: #3e4946;
}

.lesson-video {
  display: block;
  width: min(100%, 56rem);
  margin: 1.5rem 0;
  border-radius: 1rem;
  background: #101716;
}

.form-fields {
  display: grid;
  gap: 1.35rem;
  margin: 1.5rem 0;
}

.field,
.choice-group {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.field-label,
.choice-group legend {
  color: #24332f;
  font-weight: 750;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid #9ba9a4;
  border-radius: 0.7rem;
  padding: 0.75rem;
  color: #182220;
  background: #fff;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.choice {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.25rem 0;
}

.choice input {
  flex: 0 0 auto;
  margin-top: 0.22rem;
}

.form-message[role="alert"] {
  color: #8b2d24;
}

@media (max-width: 720px) {
  .dashboard-grid,
  .login-details {
    grid-template-columns: 1fr;
  }

  .qr-image {
    width: min(15rem, 100%);
    margin: 0 auto;
  }
}
