/* หน้า "ยืนยันตัวตน" (/verify · verify.js) · Taste Skill แบบ app screen งานเดียว
   คำถามหลักของหน้า: "ฉันต้องกดอะไร" → การ์ดเดียวกลางจอ ข้อความ 1 บรรทัด ปุ่มใหญ่ 1 ปุ่ม ทางสำรองเป็นลิงก์เล็กใต้ปุ่ม
   สีเน้นสีเดียว (น้ำเงินของระบบ) · ไม่มีการเคลื่อนไหวเปิดตัว · ปุ่มสูง 60 px กดด้วยนิ้วโป้งง่าย */
/* หน้านี้ใช้ทั้ง Organize และ Healthy (run-pages/verify.css คัดลอกไป) · Healthy ไม่มีสไตล์กลางที่ซ่อน [hidden] และนับขอบในขนาดกล่อง
   จึงต้องกำหนดเองในไฟล์นี้ ไม่งั้นทุกการ์ดโผล่พร้อมกันและกว้างล้นจอ (เจ้าของระบบแจ้ง 24 ต.ค. 2569) */
.vf-route [hidden] {
  display: none !important;
}
.vf-shell,
.vf-shell * {
  box-sizing: border-box;
}
body.vf-route {
  background: #eef4fb;
  color: #14243b;
}
.vf-shell {
  display: grid;
  justify-items: center;
  width: min(560px, calc(100% - 32px));
  margin: clamp(20px, 7vh, 72px) auto 48px;
}
.vf-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  padding: 34px 28px 28px;
  border: 1px solid #d7e3ef;
  border-radius: 24px;
  background: #fff;
  text-align: center;
}
.vf-card h1 {
  margin: 0;
  /* ระบุสีเอง: Worker แทรก /system-font.css ที่ตั้งสี h1–h6 น้ำเงินเข้มตายตัว ทำให้หัวข้อมืดบนพื้นโหมดมืด (26 ต.ค. 2569) */
  color: #14243b;
  font-size: clamp(1.6rem, 5.4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.vf-lead {
  max-width: 30ch;
  margin: 0;
  color: #4a5b72;
  font-size: 1.12rem;
  line-height: 1.55;
}
.vf-badge {
  color: #176fcf;
  font-size: 52px !important;
  line-height: 1;
}
.vf-badge.is-ok {
  color: #13855b;
}
.vf-badge.is-bad {
  color: #b42318;
}
.vf-main {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 60px;
  margin-top: 8px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  background: #176fcf;
  color: #fff;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.vf-main:hover {
  background: #135fb2;
}
.vf-main:active {
  transform: translateY(1px);
}
/* ระหว่างรอเครื่องแม่ข่าย/ตัวสแกน ปุ่มกดซ้ำไม่ได้ (26 ต.ค. 2569 · กันหน้าต่างสแกนเด้งซ้อน) */
.vf-main:disabled,
.vf-link:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}
.vf-link {
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: #176fcf;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.vf-main:focus-visible,
.vf-link:focus-visible,
.vf-choice:focus-visible {
  outline: 3px solid #0b4f9c;
  outline-offset: 3px;
}
.vf-wait,
.vf-note {
  margin: 0;
  color: #607086;
  font-size: 1rem;
}

/* ---------- คอมพิวเตอร์: คิวอาร์ซ้าย ขั้นตอนขวา ---------- */
.vf-shell:has(.vf-desktop:not([hidden])) {
  width: min(760px, calc(100% - 32px));
}
.vf-desk-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  width: 100%;
  margin-top: 6px;
  text-align: left;
}
.vf-qr-box {
  display: grid;
  justify-items: center;
  gap: 6px;
}
.vf-qr {
  width: 220px;
  height: 220px;
  padding: 8px;
  border: 1px solid #d7e3ef;
  border-radius: 14px;
  background: #fff;
}
.vf-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}
.vf-qr.is-expired {
  opacity: 0.25;
}
.vf-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding-left: 1.4em;
  font-size: 1.15rem;
  line-height: 1.5;
}
.vf-steps li::marker {
  color: #176fcf;
  font-weight: 800;
}
.vf-number {
  display: inline-block;
  min-width: 2.2em;
  padding: 0 10px;
  border-radius: 10px;
  background: #e8f1fc;
  color: #0b4f9c;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

/* ---------- มือถือ: เลือกเลข 3 ตัว ---------- */
.vf-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}
.vf-choice {
  min-height: 88px;
  border: 2px solid #c9d8ea;
  border-radius: 18px;
  background: #fff;
  color: #14243b;
  font: inherit;
  font-size: 2.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.vf-choice:hover {
  border-color: #176fcf;
}
.vf-choice:disabled {
  opacity: 0.5;
  cursor: progress;
}

@media (max-width: 640px) {
  .vf-shell {
    width: calc(100% - 24px);
    margin-top: 18px;
  }
  .vf-card {
    padding: 28px 20px 22px;
  }
  .vf-desk-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vf-main:active {
    transform: none;
  }
}

/* ---------- วิธีตั้งค่าเมื่อมือถือยังสแกนไม่ได้ (verify.js howto) ---------- */
.vf-howto {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid #d7e3ef;
  border-radius: 16px;
  background: #f6f9fd;
  text-align: left;
}
.vf-howto-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.vf-howto-tab {
  min-height: 44px;
  border: 2px solid #c9d8ea;
  border-radius: 12px;
  background: #fff;
  color: #14243b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.vf-howto-tab[aria-pressed='true'] {
  border-color: #176fcf;
  background: #176fcf;
  color: #fff;
}
.vf-howto-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.4em;
  color: #14243b;
  font-size: 1.02rem;
  line-height: 1.55;
}
.vf-howto-steps li::marker {
  color: #176fcf;
  font-weight: 800;
}
.vf-howto .vf-note {
  text-align: center;
}
.vf-howto-env {
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

/* ---------- มือถือ: คอมที่ขอเข้าระบบอยู่ที่ไหน (คิวอาร์เข้าระบบ · 27 ต.ค. 2569) ----------
   อยู่เหนือเลข 3 ตัว ให้เห็นก่อนกด · นอกประเทศไทย/นอกโรงพยาบาล = .is-warn สีแดง พร้อมไอคอน error (สีกับข้อความไปด้วยกัน) */
.vf-where {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #c9d8ea;
  border-radius: 16px;
  background: #f4f8fd;
  color: #14243b;
  text-align: left;
}
.vf-where-icon {
  color: #176fcf;
  font-size: 28px !important;
  line-height: 1;
}
.vf-where-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.vf-where-label {
  margin: 0;
  color: #4a5b72;
  font-size: 0.95rem;
}
.vf-where-text {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.vf-where-hint {
  margin: 4px 0 0;
  color: #4a5b72;
  font-size: 0.95rem;
  line-height: 1.5;
}
.vf-where.is-warn {
  border-color: #f0b4ae;
  background: #fff4f2;
}
.vf-where.is-warn .vf-where-icon,
.vf-where.is-warn .vf-where-text {
  color: #b42318;
}
.vf-where.is-warn .vf-where-hint {
  color: #7a271a;
  font-weight: 700;
}
