/* The patient website (plan §9.14): the app's colours, the phone's own
   fonts (Bangla included), big touch targets. Nothing loads from elsewhere. */
:root {
  color-scheme: light dark;
  --accent: #0f766e; --on-accent: #fff; --page: #f5f5f7; --card: #fff;
  --text: #1d1d1f; --muted: #6b6b6b; --line: #e8e8ed;
  --error: #b91c1c; --error-bg: #fdecec; --info-bg: #e6f4f1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #2dd4bf; --on-accent: #062a26; --page: #121212; --card: #1e1e1e;
    --text: #f2f2f2; --muted: #a8a8a8; --line: #303030;
    --error: #f87171; --error-bg: #3a1717; --info-bg: #10302c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
}
a { color: var(--accent); }
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in, main, footer { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 800;
}
.lang {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px;
}
main { padding-top: 20px; padding-bottom: 8px; }
h1 { font-size: 24px; line-height: 1.3; margin: 0 0 8px; }
h2 { font-size: 19px; margin: 0; }
.lead { color: var(--muted); margin: 0 0 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; margin: 0 0 16px;
}
label { display: block; font-weight: 600; margin-bottom: 8px; }
input {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 19px;
  color: var(--text); background: var(--page); border: 1.5px solid var(--line); border-radius: 12px;
}
input:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
input.code { letter-spacing: .3em; font-variant-numeric: tabular-nums; text-align: center; font-size: 24px; }
.hint { color: var(--muted); font-size: 15px; margin: 8px 0 20px; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 20px; font: inherit; font-weight: 700; border-radius: 12px; cursor: pointer;
  text-decoration: none; border: 1.5px solid var(--line); background: none; color: var(--text);
}
form > button.primary { width: 100%; margin-top: 4px; }
.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.quiet { min-height: 44px; font-weight: 600; font-size: 15px; }
.note { border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-weight: 600; }
.note.error { background: var(--error-bg); color: var(--error); }
.note.info { background: var(--info-bg); color: var(--text); }
.steps { color: var(--muted); padding-left: 22px; margin: 8px 0 24px; }
.steps li { margin-bottom: 6px; }
.again { margin: 16px 0 0; text-align: center; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.head h1 { margin: 0; }
.patient { margin: 24px 0 8px; }
.meta { color: var(--muted); margin: 2px 0 12px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; color: var(--text); }
.rx-list { list-style: none; margin: 0; padding: 0; }
.rx { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rx-main { flex: 1 1 220px; min-width: 0; }
.rx p { margin: 0; }
.rx-no { font-weight: 700; }
.date { color: var(--muted); font-weight: 500; margin-left: 8px; }
.who { margin-top: 2px; }
.where, .wait { color: var(--muted); font-size: 15px; }
.rx .button { flex: 0 0 auto; }
.empty { color: var(--muted); text-align: center; }
footer { color: var(--muted); font-size: 14px; padding-top: 8px; padding-bottom: 32px; }
footer p { margin: 4px 0; }
@media (min-width: 720px) {
  .top-in, main, footer { max-width: 640px; }
  main { padding-top: 40px; }
}
