/* V16 bổ sung theo cấu trúc V15: nhật ký theo ngày, nhắc lịch và quét khách. */
.guest-hero-copy h1 .hero-line{display:block;white-space:nowrap}
.guest-hero-copy h1 .hero-line em{color:#ffdc71;font-style:normal}
.guest-quick-scan{margin:34px auto;padding:clamp(24px,4vw,48px);border-radius:34px;background:linear-gradient(135deg,#263884,#4358ca 55%,#6761dc);color:#fff;box-shadow:0 24px 60px rgba(35,51,128,.22)}
.guest-quick-scan .eyebrow,.guest-quick-scan h2,.guest-quick-scan p,.guest-quick-scan label{color:#fff}
.guest-scan-heading{max-width:780px;margin-bottom:24px}.guest-scan-heading h2{font-size:clamp(30px,4vw,52px);margin:.2em 0}
.guest-scan-layout{display:grid;grid-template-columns:minmax(220px,340px) minmax(0,1fr);gap:28px;align-items:start}
.guest-scan-photo,.guest-scan-fields{padding:22px;border:1px solid rgba(255,255,255,.25);border-radius:24px;background:rgba(255,255,255,.1)}
.guest-one-shot{aspect-ratio:4/3;display:grid;place-items:center;overflow:hidden;margin-bottom:14px;border:2px dashed rgba(255,255,255,.55);border-radius:20px;background:rgba(255,255,255,.1)}
.guest-one-shot{position:relative}
.guest-one-shot [hidden],.guest-camera-actions [hidden]{display:none!important}
.guest-one-shot video{width:100%;height:100%;object-fit:contain;background:#111}
#guestTeethGuide{position:absolute;left:18%;top:35%;width:64%;height:30%;box-sizing:border-box;border:3px solid #ffe27c;border-radius:20px;box-shadow:0 0 0 999px rgba(0,0,0,.18);pointer-events:none}
#guestTeethGuide span{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);white-space:nowrap;color:#fff;background:#142e60;padding:4px 9px;border-radius:8px;font-size:12px}
.guest-one-shot img{width:100%;height:100%;object-fit:cover}.guest-one-shot>div{display:grid;justify-items:center;gap:8px}.guest-one-shot svg{width:42px;height:42px}.guest-one-shot b{font-size:20px}.guest-one-shot small{color:#dbe4ff}
.guest-scan-fields input,.guest-scan-fields select,.guest-scan-fields textarea{background:#fff;color:#17245e}.guest-scan-result{margin-top:24px;color:#17245e}.guest-scan-result:empty{display:none}.guest-scan-result .scan-result{padding:22px;border-radius:24px;background:#f3f5ff}
.guest-scan-result .ai-feedback-panel{display:none}
.diary-day summary small{margin-left:6px}.diary-day-body{display:grid;gap:14px}.diary-day-body>section{padding:14px;border-radius:16px;background:rgba(255,255,255,.45)}
@media(max-width:760px){.guest-hero-copy h1{font-size:clamp(39px,11vw,58px);line-height:.98}.guest-scan-layout{grid-template-columns:1fr}.guest-quick-scan{border-radius:24px}.guest-hero-copy h1 .hero-line{letter-spacing:-.045em}}
@media(max-width:390px){.guest-hero-copy h1{font-size:36px}}

/* Diary summary contrast fix — 2026-10-07 */
.diary-scan .result-summary {
  background: linear-gradient(145deg, #34328f, #5548c9) !important;
  color: #ffffff !important;
  padding: 20px !important;
  border-radius: 16px;
}
.diary-scan .result-summary h3,
.diary-scan .result-summary h3 * {
  color: #fff1d6 !important;
  -webkit-text-fill-color: #fff1d6 !important;
  opacity: 1 !important;
  line-height: 1.5 !important;
}
.diary-scan .result-summary p,
.diary-scan .result-summary .muted,
.diary-scan .result-summary small {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}
.diary-scan .result-summary .tag,
.diary-scan .result-summary .review-badge {
  background: #ffffff !important;
  color: #312d86 !important;
  -webkit-text-fill-color: #312d86 !important;
}
