* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f3f6fb;
  color: #14213d;
  font: 17px/1.55 "Inter", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.queue { max-width: 640px; margin: 0 auto; padding: 20px 16px 64px; }

.page-header h1 { font-size: 26px; font-weight: 700; margin: 8px 0 20px; }

.section-label {
  margin: 28px 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #56627a;
}

h2 { font-size: 19px; font-weight: 600; margin: 22px 0 10px; }
h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; line-height: 1.35; }

.card, .walkthrough {
  background: #fff;
  border: 1px solid #d9e1ee;
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 14px;
}

.walkthrough .card { border: 0; padding: 0; margin: 14px 0 0; }
.walkthrough h2 { margin-top: 0; }

.meta { margin: 0 0 10px; font-size: 14px; color: #56627a; }
.meta.overdue { color: #a33; font-weight: 600; }
.answer-status { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: #1f5f3a; }

.context { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 12px; }
.inverse { margin: 0 0 12px; color: #3b4a66; font-style: italic; }

.links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 12px; }
.links a { color: #1f5fbf; font-weight: 500; padding: 6px 0; }

textarea {
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #d9e1ee;
  border-radius: 10px;
  font: 16px/1.45 "Inter", system-ui, sans-serif;
  color: #14213d;
  margin: 0 0 10px;
  resize: vertical;
}

.message { margin: 0 0 10px; font-size: 15px; color: #a33; }
.message:empty { display: none; }

.choices, .off-notes { display: flex; flex-direction: column; gap: 10px; }
.off-notes { margin-bottom: 10px; }

button, .login-box button {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid #c4d1e6;
  border-radius: 12px;
  background: #fff;
  color: #14213d;
  font: 600 16px "Inter", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}

button:hover:not(:disabled) { border-color: #1f5fbf; }
button:disabled { opacity: 0.55; cursor: default; }
button.chosen { background: #e7effb; border-color: #1f5fbf; }
button.primary, .login-box button { background: #1f5fbf; border-color: #1f5fbf; color: #fff; text-align: center; }

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e7effb;
  color: #1f5fbf;
  font-size: 12px;
  font-weight: 600;
}

progress { width: 100%; height: 10px; accent-color: #1f5fbf; }
.progress-label { margin: 0 0 6px; font-weight: 600; }
.empty { color: #56627a; }

body.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-box { width: 100%; max-width: 380px; background: #fff; border: 1px solid #d9e1ee; border-radius: 14px; padding: 32px 30px; text-align: center; }
.login-box h1 { font-size: 26px; margin: 0 0 8px; }
.login-box p { margin: 0 0 20px; color: #56627a; font-size: 15px; }
.login-box input { width: 100%; padding: 12px 14px; border: 1px solid #d9e1ee; border-radius: 8px; font: 16px "Inter", system-ui, sans-serif; margin-bottom: 14px; }
.login-box .error { color: #a33; font-weight: 600; font-size: 14px; margin: 0 0 14px; }
