:root {
  color-scheme: light;
  --paper: #f7f8f2;
  --ink: #253b33;
  --muted: #64736a;
  --green: #214c40;
  --line: #dce1d8;
  --morning: #f2e9ce;
  --evening: #e8e2ee;
  --quiz: #e0ecd9;
  --radius: 20px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #bd7043;
  outline-offset: 4px;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
[hidden] {
  display: none !important;
}
.page-shell {
  max-width: 1060px;
  margin: auto;
  padding: 0 48px;
}
.topbar {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 19px;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.brand strong {
  font-weight: 650;
}
.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-right: 9px;
  transform: rotate(-5deg);
}
.brand-mark i {
  background: var(--green);
  border-radius: 3px;
}
.brand-mark i:nth-child(2) {
  border-radius: 50%;
  background: #be7754;
}
.brand-mark i:nth-child(3) {
  background: #adc38d;
}
.profile {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6e9dd;
  font-size: 14px;
  font-weight: 700;
}
.profile-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.text-button {
  background: transparent;
  border: 0;
  text-decoration: underline;
  font-size: 13px;
  padding: 8px;
}
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 66px 0 56px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-weight: 750;
  margin: 0 0 12px;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(36px, 5.8vw, 58px);
  line-height: 1.12;
  letter-spacing: -2.5px;
  font-weight: 580;
  margin-bottom: 20px;
}
h2 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.7px;
  font-weight: 600;
  margin-bottom: 0;
}
h3 {
  font-size: 18px;
  font-weight: 600;
}
.accent {
  color: #b87551;
}
.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin: 0;
}
.welcome-art {
  position: relative;
  flex: 0 0 205px;
  height: 170px;
  margin: 12px 28px 0 12px;
}
.sun {
  display: block;
  position: absolute;
  width: 88px;
  height: 88px;
  background: #eac99a;
  border-radius: 50%;
  right: 5px;
  top: -8px;
}
.book {
  position: absolute;
  display: block;
  height: 142px;
  width: 108px;
  background: #b7cda6;
  transform: rotate(-15deg);
  border: 2px solid var(--green);
  border-radius: 8px 15px 15px 8px;
  top: 23px;
  left: 24px;
  box-shadow:
    8px 8px 0 #f7f8f2,
    10px 10px 0 #214c40;
}
.book:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  border-left: 1px solid #214c40;
}
.book i {
  display: block;
  border-top: 2px solid #547653;
  width: 47px;
  margin: 29px 0 0 34px;
}
.book i + i {
  margin-top: 12px;
}
.art-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  background: var(--green);
  border-radius: 50%;
  right: 7px;
  bottom: 17px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.section-heading .eyebrow {
  margin-bottom: 8px;
}
.count {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 26px;
  background: #e8ecdf;
  border-radius: 8px;
  font-size: 12px;
  margin-left: 6px;
  letter-spacing: 0;
}
.connection {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  max-width: 230px;
}
.connection:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b4baae;
  margin-right: 7px;
  vertical-align: middle;
}
.connection.online:before {
  background: #4c7855;
}
.connection.waiting:before {
  background: #bd7043;
}
.inbox-hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
}
.notification-list {
  display: grid;
  gap: 13px;
}
.notification-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  width: 100%;
  align-items: center;
  text-align: left;
  gap: 20px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.notification-card:hover {
  border-color: #8c9b87;
  transform: translateY(-2px);
}
.type-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-family: Georgia, serif;
  font-size: 29px;
  line-height: 1;
  background: var(--tint);
  color: var(--ink);
}
.morning {
  --tint: var(--morning);
}
.evening {
  --tint: var(--evening);
}
.quiz {
  --tint: var(--quiz);
}
.notification-copy {
  flex: 1;
  min-width: 0;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.card-meta .eyebrow {
  font-size: 9px;
  margin: 0;
  letter-spacing: 1.1px;
}
.card-meta time {
  font-size: 10px;
  color: var(--muted);
}
.card-title {
  font-size: 18px;
  font-weight: 600;
  display: block;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.card-summary {
  font-size: 13px;
  color: var(--muted);
  display: block;
}
.card-tail {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 38px;
}
.new-badge {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.2px;
  background: #e9efdf;
  border-radius: 5px;
  padding: 2px 7px;
}
.card-arrow {
  font-size: 22px;
  color: #748474;
}
.empty-state {
  padding: 45px 20px;
  border: 1px dashed #cdd6c6;
  border-radius: var(--radius);
  text-align: center;
  background: #f0f3e9;
}
.empty-state p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.empty-state h3 {
  margin-bottom: 9px;
}
.empty-symbol {
  display: inline-block;
  font-size: 35px;
  color: #728b60;
  margin-bottom: 14px;
}
.gentle-note {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 37px 0 65px;
  padding: 0 6px;
}
.gentle-note > span {
  font-size: 28px;
  color: #809274;
}
.gentle-note p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.gentle-note strong {
  font-weight: 600;
  color: var(--ink);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 25px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.footer-dot {
  padding: 0 7px;
}
.demo-label {
  font-size: 10px;
}
.login-panel {
  padding: 30px;
  background: #edf1e4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 30px;
}
.login-panel h2 {
  margin-bottom: 12px;
}
.login-panel p {
  font-size: 14px;
  color: var(--muted);
}
label {
  font-size: 13px;
}
input[type="password"] {
  width: 100%;
  min-width: 0;
  border: 1px solid #c6d0bf;
  border-radius: 10px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
}
.login-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 7px;
}
.primary-button {
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 12px 19px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  min-height: 44px;
}
.primary-button:hover {
  background: #316451;
}
.login-panel [role="status"] {
  margin-bottom: 0;
  margin-top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
dialog {
  width: min(650px, calc(100% - 24px));
  max-height: 88dvh;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 25px 100px #17332740;
}
dialog::backdrop {
  background: #1b302c80;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-top .eyebrow {
  margin: 0;
}
.close-button {
  background: #e7ecdf;
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  width: 38px;
  height: 38px;
  line-height: 1;
}
.content-demo {
  font-size: 10px;
  line-height: 1.6;
  color: #7e6953;
  margin: 18px 0 12px;
}
dialog h2 {
  font-size: 29px;
  margin-bottom: 24px;
}
.content-paragraph {
  font-size: 16px;
  line-height: 1.85;
  color: #455b50;
  margin-bottom: 20px;
}
#finish-content {
  margin-top: 24px;
  background: transparent;
  color: var(--green);
  white-space: normal;
  width: 100%;
}
.quiz-answers {
  padding: 0;
  border: 0;
  margin: 28px 0;
}
.quiz-answers legend {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  padding: 0;
}
.question-topic {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 10px 0 14px;
}
.answer {
  padding: 13px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 9px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.6;
}
.answer:has(input:checked) {
  border-color: #64815c;
  background: #e8efdf;
}
.answer input {
  margin: 5px 0 0;
  accent-color: var(--green);
  flex-shrink: 0;
}
.answer:has(input:disabled) {
  cursor: default;
}
.quiz-feedback {
  font-size: 13px;
  line-height: 1.75;
  padding: 10px 0;
  color: #72583e;
}
.quiz-feedback:empty {
  display: none;
}
.quiz-feedback.correct {
  color: #305d3c;
}
.quiz-progress,
.quiz-result {
  padding: 15px 18px;
  background: #e5ecd9;
  border-radius: 12px;
  font-size: 14px;
  color: #30543b;
}
.quiz-result {
  font-weight: 600;
  font-size: 17px;
}
.question-count {
  font-size: 12px;
  color: var(--muted);
}
.admin-shell {
  max-width: 1216px;
}
.admin-intro {
  padding: 53px 0 35px;
}
.admin-intro h1 {
  font-size: 45px;
  letter-spacing: -1.8px;
}
.admin-badge {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 11px;
}
.admin-access {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 15px 35px;
  padding: 24px;
  background: #edf0e6;
  border-radius: 16px;
  margin-bottom: 44px;
}
.admin-access h2 {
  font-size: 18px;
}
.admin-access p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
}
.key-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.admin-access #access-status {
  grid-column: 1/-1;
  font-size: 11px;
}
.access-ok {
  color: #375d38 !important;
}
.access-error {
  color: #965e36 !important;
}
.target-label {
  font-size: 11px;
  color: var(--muted);
}
.send-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 23px;
}
.send-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  text-align: left;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  min-height: 206px;
}
.send-card:not(:disabled):hover {
  border-color: #79936e;
  background: #fbfcf9;
}
.send-card .type-icon {
  width: 43px;
  height: 43px;
  font-size: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.send-card strong {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.3px;
  padding-right: 10px;
}
.send-card > span:not(.type-icon):not(.send-arrow) {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.send-card .send-arrow {
  position: absolute;
  top: 26px;
  right: 23px;
  font-size: 21px;
  color: #7d8c75;
}
.send-result {
  font-size: 12px;
  color: var(--muted);
  min-height: 24px;
  margin-top: 16px;
  overflow-wrap: anywhere;
}
.event-log {
  margin: 42px 0 60px;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  background: #eff2e9;
  color: var(--muted);
  padding: 15px 19px;
}
td {
  padding: 18px 19px;
  border-top: 1px solid #e8ece2;
  vertical-align: top;
}
td strong {
  font-size: 13px;
  font-weight: 600;
}
.event-id {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  white-space: nowrap;
}
.timestamp {
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
  padding-top: 21px;
}
.status-badge {
  display: inline-block;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  line-height: 1.5;
}
.status-badge.pending {
  background: #f6edd3;
  color: #806327;
}
.status-badge.received {
  background: #e4efdf;
  color: #396341;
}
.status-badge.failed {
  background: #f4e1de;
  color: #8d453c;
}
.receipt-time {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 230px;
}
.log-empty {
  padding: 25px;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 700px) {
  .page-shell {
    padding: 0 23px;
  }
  .topbar {
    height: 84px;
  }
  .welcome {
    padding: 42px 0 36px;
  }
  .welcome-art {
    flex-basis: 116px;
    height: 140px;
    margin: 15px 0 0 8px;
    transform: scale(0.75);
    transform-origin: right center;
  }
  .welcome h1 {
    font-size: 42px;
  }
  .welcome .lead {
    font-size: 14px;
  }
  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  h2 {
    font-size: 22px;
  }
  .connection {
    font-size: 10px;
    text-align: left;
    max-width: none;
  }
  .inbox-hint {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .notification-card {
    padding: 17px;
    gap: 13px;
  }
  .notification-card .type-icon {
    width: 43px;
    height: 46px;
    font-size: 24px;
    border-radius: 12px;
  }
  .card-meta {
    flex-wrap: wrap;
    gap: 3px 10px;
  }
  .card-meta time {
    font-size: 9px;
  }
  .card-title {
    font-size: 16px;
  }
  .card-summary {
    font-size: 12px;
  }
  .card-tail {
    min-width: 28px;
  }
  .new-badge {
    font-size: 9px;
    padding: 2px 5px;
  }
  .gentle-note {
    margin: 30px 0 44px;
  }
  .login-panel {
    padding: 23px;
  }
  footer {
    font-size: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .admin-intro {
    padding-top: 38px;
  }
  .admin-intro h1 {
    font-size: 36px;
    letter-spacing: -1.3px;
  }
  .admin-intro .lead {
    font-size: 14px;
  }
  .admin-access {
    grid-template-columns: 1fr;
    padding: 20px;
    margin-bottom: 32px;
  }
  .send-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 17px;
  }
  .send-card {
    min-height: 106px;
    padding: 18px 46px 18px 82px;
    justify-content: center;
  }
  .send-card .type-icon {
    position: absolute;
    left: 19px;
    top: 25px;
  }
  .send-card .send-arrow {
    top: 35px;
    right: 18px;
  }
  .send-card strong {
    font-size: 15px;
  }
  .send-card > span:not(.type-icon):not(.send-arrow) {
    margin-top: 3px;
  }
  .event-log {
    margin: 28px 0 44px;
  }
  .admin-badge {
    font-size: 9px;
    padding: 5px 8px;
  }
  .profile-actions {
    gap: 8px;
  }
  .text-button {
    font-size: 11px;
  }
  dialog {
    padding: 22px;
    border-radius: 20px;
  }
  dialog h2 {
    font-size: 25px;
  }
  .content-paragraph {
    font-size: 15px;
  }
  .quiz-answers legend {
    font-size: 16px;
  }
  .answer {
    font-size: 13px;
  }
  .login-row .primary-button {
    padding: 10px 14px;
  }
  td,
  th {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 380px) {
  .page-shell {
    padding: 0 16px;
  }
  .welcome-art {
    display: none;
  }
  .card-meta time {
    display: block;
  }
  .notification-card {
    gap: 10px;
    padding: 14px;
  }
  .notification-card .type-icon {
    width: 35px;
    height: 40px;
  }
  .card-title {
    font-size: 15px;
  }
  .card-summary {
    font-size: 11px;
  }
  .login-row {
    flex-wrap: wrap;
  }
  .login-row .primary-button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
