/* หน้า "ยืนยันตัวตน" (/verify) · มือถือที่ส่องคิวอาร์จากคอม: ถามก่อนว่า "ใช่คุณไหม" (เจ้าของระบบ 3 พ.ย. 2569)
   แบบการ์ดยืนยันการเข้าสู่ระบบ: พื้นไล่สีอ่อน หัวข้อตัวใหญ่ชิดซ้าย การ์ดขอบมน (แผนที่ภาพประกอบ เครื่อง ที่ตั้ง เวลา)
   ปุ่มหลักทรงแคปซูล "ใช่ ฉันเอง" (น้ำเงินทึบ) · "ไม่ใช่ฉัน" ปุ่มขอบแดง · ผลลัพธ์มีเครื่องหมายถูกสีเขียว/ห้ามสีแดง + เวลา
   ไฟล์นี้ใช้ร่วมกับ Healthy (run-pages/verify-approve.css คัดลอกไป · test/passkey-healthy-gate.test.js ตรวจว่าตรงกัน)
   ไม่ใช้โลโก้/ชื่อแบรนด์อื่น · สีเน้นสีเดียวของระบบ #176fcf */
body.vf-route {
  background: linear-gradient(160deg, #fbf6f3 0%, #eef3fb 38%, #eaf1fb 70%, #eef8f3 100%) fixed;
}

/* ---------- การ์ดอนุมัติ: ไม่มีกรอบการ์ดกลางจอ เนื้อหาชิดซ้ายเต็มความกว้าง ---------- */
.vf-card.vfa {
  justify-items: stretch;
  gap: 0;
  padding: 4px 2px 8px;
  border: 0;
  background: transparent;
  text-align: left;
}
.vfa-keep {
  white-space: nowrap;
}
.vf-card.vfa .vfa-title {
  margin: 0 0 20px;
  color: #0f1d31;
  font-size: clamp(1.6rem, 6.4vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.vfa-card {
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
}

/* แผนที่เป็นภาพประกอบ ไม่ใช่ตำแหน่งจริง (ระบบรู้แค่ชื่อจังหวัด/เมือง) */
.vfa-map {
  position: relative;
  height: 150px;
  background: #e3efe2;
}
.vfa-map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vfa-pin {
  position: absolute;
  top: 34px;
  left: calc(50% - 14px);
  width: 28px;
  height: 34px;
  fill: #176fcf;
}
.vfa.is-warn .vfa-pin {
  fill: #b42318;
}
.vfa-place {
  position: absolute;
  top: 40px;
  left: calc(50% + 18px);
  max-width: calc(50% - 26px);
  overflow: hidden;
  color: #3f5a43;
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vfa-dev {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 16px;
}
.vfa-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  background: #f4f7fb;
  color: #176fcf;
  font-size: 30px !important;
}
/* ไอคอนคอมอยู่คู่แถวชื่อเครื่องแถวเดียว · ที่ตั้ง คำเตือน เวลา ใช้ความกว้างเต็มการ์ด (เจ้าของระบบ 5 พ.ย. 2569)
   display: contents = ลูกของ .vfa-dev-text เป็นช่องในตารางของ .vfa-dev โดยตรง (HTML เดิม ไม่ต้องย้ายที่) */
.vfa-dev {
  row-gap: 2px;
}
.vfa-dev-text {
  display: contents;
}
.vfa-dev .vfa-tile {
  grid-row: 1;
}
.vfa-dev .vfa-device {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 0;
}
.vfa-dev-text > :not(.vfa-device) {
  grid-column: 1 / -1;
}
.vfa-device {
  color: #0f1d31;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}
/* ที่ตั้งอยู่ในการ์ด (เดิมเป็นกล่องแยก) · แยกแถว สถานที่ / IP / เครือข่าย (เจ้าของระบบ 5 พ.ย. 2569: ก้อนตัวแดงต่อกันอ่านยาก)
   ตัวแดงเฉพาะค่าที่ผิดปกติ (นอกโรงพยาบาล / นอกประเทศไทย = ตัวหนังสือสีแดง ไม่มีป้ายพื้นหลัง · 19 พ.ย. 2569) · คำเตือนเป็นกล่องแยกสีอ่อน */
.vfa-dev-text .vf-where {
  display: block;
  margin: 12px 0 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.vfa-rows {
  display: grid;
  gap: 6px;
  margin: 0;
}
.vfa-row {
  display: grid;
  /* ความกว้างป้ายเป็น rem ไม่ใช่ em: แถวที่ตั้งกับแถวเวลาอยู่คนละกล่อง ขนาดตัวอักษรต่างกัน ค่าจะได้เริ่มตรงกันทุกแถว */
  grid-template-columns: 4.4rem minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
}
.vfa-row dt {
  color: #607086;
  font-size: 0.86rem;
  font-weight: 400;
}
.vfa-row dd {
  margin: 0;
  min-width: 0;
  color: #0f1d31;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.vfa-row dd.vfa-ip {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.vfa-row dd.is-bad {
  color: #b42318;
}
.vfa-row dd.is-good {
  color: #17683a;
}
/* เวลาที่ขอ / ใช้ได้ถึง ต่อจากแถวที่ตั้ง ระยะเท่าช่องว่างระหว่างแถว · คิวอาร์ไม่มีที่ตั้ง (#approve=) ขยับลงเท่าเดิม */
.vfa-times {
  margin: 0 0 6px;
}
.vfa-times:not(:has(.vfa-row:not([hidden]))) {
  display: none;
}
.vf-where[hidden] + .vfa-times {
  margin-top: 12px;
}
.vfa-dev-text .vf-where-hint {
  display: none;
}
.vfa-dev-text .vf-where.is-warn .vf-where-hint {
  display: block;
  margin: 10px 0 2px;
  padding: 10px 12px;
  border-left: 3px solid #e8988f;
  border-radius: 10px;
  background: #fff4f2;
  color: #7a271a;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
}
/* อนุมัติ/ปฏิเสธไปแล้ว คำเตือน "อย่ากดอนุมัติ" ไม่ต้องแสดงอีก */
.vfa.is-ok .vfa-dev-text .vf-where-hint,
.vfa.is-no .vfa-dev-text .vf-where-hint {
  display: none;
}

.vfa-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid #e6ebf2;
  color: #4a5b72;
  font-size: 1rem;
  line-height: 1.45;
}
.vfa-result-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1a8a4a;
  color: #fff;
  font-size: 20px !important;
}
.vfa.is-no .vfa-result-icon {
  background: #c4320a;
}

.vfa-ask,
.vfa-pick {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.vfa-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 2px;
  color: #22344d;
  font-size: 1rem;
}
.vfa-note-icon {
  color: #22344d;
  font-size: 24px !important;
}
.vfa .vf-choices {
  margin-top: 0;
}
.vfa-hint {
  margin: 0;
  color: #607086;
  font-size: 0.95rem;
  text-align: center;
}

/* ปุ่มทรงแคปซูล: "ใช่ ฉันเอง" เด่นสุด (เจ้าของระบบ 3 พ.ย. 2569) */
.vf-card.vfa .vf-main {
  width: 100%;
  border-radius: 999px;
}
.vfa-done {
  margin-top: 24px;
}
.vfa-no {
  width: 100%;
  min-height: 54px;
  margin-top: 10px;
  border: 1.5px solid #e7b8b2;
  border-radius: 999px;
  background: transparent;
  color: #b42318;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}
.vfa-no:hover:not(:disabled) {
  background: #fdf1ef;
}
.vfa-no:focus-visible {
  outline: 3px solid #0b4f9c;
  outline-offset: 3px;
}
.vfa-no:disabled {
  opacity: 0.6;
  cursor: progress;
}
.vfa .vf-busy {
  margin-top: 10px;
  text-align: center;
}
