/* ===== Auto Guide : หน้าเว็บฝั่ง server (ยืนยันอีเมล / ตั้งรหัสผ่าน / ลิงก์แชร์) ===== */
:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", "Sukhumvit Set", "Noto Sans Thai", "Leelawadee UI", sans-serif;
  margin: 0; background: #f5f6f7; color: #1f2328; line-height: 1.6;
}
a { color: #1a73e8; }

/* การ์ดกลางจอ (verify / reset / index) */
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.card {
  width: 100%; max-width: 420px; background: #fff; border: 1px solid #e4e7ea; border-radius: 14px;
  padding: 28px 24px; text-align: center;
}
.brand { font-weight: 700; font-size: 15px; color: #767b81; margin-bottom: 18px; }
.card h1 { font-size: 20px; margin: 0 0 8px; }
.card p { margin: 0 0 14px; color: #474d55; font-size: 14px; }
.icon { font-size: 42px; line-height: 1; margin-bottom: 12px; }
.muted, .card p.muted { color: #767b81; font-size: 13px; }

form { text-align: left; margin-top: 8px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
input {
  width: 100%; border: 1px solid #d6dade; border-radius: 8px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; outline: none;
}
input:focus { border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26, 115, 232, .15); }
.btn {
  display: inline-block; width: 100%; border: 0; border-radius: 8px; padding: 11px 14px; margin-top: 18px;
  background: #1a73e8; color: #fff; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
  text-decoration: none; text-align: center;
}
.btn:disabled { opacity: .6; cursor: default; }
.btn.secondary { background: #eef3fd; color: #1a73e8; }
.msg { font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-top: 14px; text-align: left; }
.msg.err { background: #fdecea; color: #b3261e; }
.msg.ok { background: #e6f4ea; color: #137333; }
[hidden] { display: none !important; }

/* หน้าดูคู่มือที่แชร์ */
.topbar {
  position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid #e4e7ea;
  padding: 12px 16px; display: flex; gap: 10px; align-items: center;
}
.topbar .name { font-weight: 700; margin-right: auto; }
.topbar button {
  border: 1px solid #d6dade; background: #fff; border-radius: 8px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; color: #1f2328;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 24px 16px 80px; }
.wrap h1 { font-size: 26px; margin: 4px 0 2px; word-break: break-word; }
.meta { color: #767b81; font-size: 13px; margin-bottom: 20px; }
.step {
  background: #fff; border: 1px solid #e4e7ea; border-radius: 12px; padding: 16px 18px;
  margin-bottom: 16px; break-inside: avoid; page-break-inside: avoid;
}
.step .head { display: flex; gap: 12px; align-items: flex-start; }
.num {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: #1a73e8; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.desc { flex: 1; font-size: 15px; padding-top: 3px; word-break: break-word; }
.step img {
  display: block; max-width: 100%; height: auto; border: 1px solid #e4e7ea; border-radius: 8px;
  margin: 12px 0 4px; background: #f1f3f4;
}
.url { color: #9aa0a6; font-size: 12px; word-break: break-all; margin-top: 6px; }
.state { text-align: center; color: #767b81; padding: 80px 16px; font-size: 15px; }

@media print {
  .topbar { display: none !important; }
  body { background: #fff; }
  .wrap { max-width: 100%; padding: 0; }
  .step { border: 0; border-bottom: 1px solid #eee; border-radius: 0; }
}
