/* =====================================================================
   vstar-components.css — V-Star "Starlit Clay Classroom" components
   ต้องโหลดหลัง vstar-tokens.css · ใช้แบบ opt-in ด้วยคลาส .vt-* (ไม่มี !important)
   ต้นแบบ: login.php · รายละเอียด/วิธีใช้: DESIGN.md

   <body class="vt-ui vt-page">         พื้นครีม + แสงพาสเทลมุมจอ + ฟอนต์/โฟกัส/selection
     <div class="vt-sky" aria-hidden>…   ดาวลอยตกแต่ง (ใส่ <svg class="vt-star vt-star--1"> …)
     <main class="vt-shell">             จัดกลางจอ
       <section class="vt-card vt-card--badged">
         <div class="vt-badge">…logo…</div>
         <h1 class="vt-title">…</h1>
         <div class="vt-event"><span class="vt-tag">V-STAR</span><p class="vt-event__name">…</p></div>
         <div class="vt-field"> label.vt-label + .vt-input-group(.vt-input-icon + input.vt-input) + .vt-help </div>
         <button class="vt-btn vt-btn--primary vt-btn--block">…</button>
         <div class="vt-divider">หรือ</div>
   ===================================================================== */

/* ---------- base (opt-in scope) ---------- */
.vt-ui {
  font-family: var(--vt-font);
  color: var(--vt-ink);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
.vt-ui ::selection { background: var(--vt-butter); color: var(--vt-ink); }
.vt-ui :focus-visible { outline: 3px solid var(--vt-sage-d); outline-offset: 3px; }
.vt-ui h1, .vt-ui h2, .vt-ui h3 { font-family: var(--vt-font-head); font-weight: 700; line-height: 1.45; color: var(--vt-ink); text-wrap: balance; }

/* ---------- page background ---------- */
.vt-page {
  margin: 0;
  min-height: 100vh;
  background-color: var(--vt-cream);
  background-image:
    radial-gradient(38rem 30rem at 8% 6%, var(--vt-peach-s) 0%, transparent 62%),
    radial-gradient(34rem 28rem at 96% 14%, var(--vt-sky-s) 0%, transparent 60%),
    radial-gradient(40rem 30rem at 88% 100%, var(--vt-sage-s) 0%, transparent 62%),
    radial-gradient(30rem 24rem at 0% 96%, var(--vt-butter-s) 0%, transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ---------- decorative stars (the V-STAR motif) ---------- */
.vt-sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.vt-sky svg, .vt-star { position: absolute; display: block; }
.vt-star--1 { width: 58px; top: 9%;  left: 7%;  color: var(--vt-butter); transform: rotate(-12deg); }
.vt-star--2 { width: 30px; top: 22%; left: 18%; color: var(--vt-peach); }
.vt-star--3 { width: 44px; top: 12%; right: 10%; color: var(--vt-sky); transform: rotate(14deg); }
.vt-star--4 { width: 72px; bottom: 11%; right: 7%; color: var(--vt-butter); transform: rotate(8deg); }
.vt-star--5 { width: 26px; bottom: 26%; right: 20%; color: var(--vt-lav); }
.vt-star--6 { width: 40px; bottom: 9%; left: 10%; color: var(--vt-sage); transform: rotate(-18deg); }
.vt-dot { position: absolute; border-radius: 50%; }
.vt-dot--1 { width: 12px; height: 12px; top: 34%; left: 6%; background: var(--vt-sage); }
.vt-dot--2 { width: 9px;  height: 9px;  top: 30%; right: 16%; background: var(--vt-peach); }
.vt-dot--3 { width: 14px; height: 14px; bottom: 34%; left: 16%; background: var(--vt-sky); }
@media (max-width: 575.98px) {
  .vt-star--1 { width: 38px; top: 3%; left: 4%; }
  .vt-star--2, .vt-star--5, .vt-dot--1, .vt-dot--3 { display: none; }
  .vt-star--3 { width: 30px; top: 4%; right: 6%; }
  .vt-star--4 { width: 46px; bottom: 3%; right: 5%; }
  .vt-star--6 { width: 28px; bottom: 4%; left: 6%; }
}

/* ---------- layout ---------- */
.vt-shell {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
  box-sizing: border-box;
}
.vt-shell--top { align-items: flex-start; }

/* ---------- cards ---------- */
.vt-card {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  background: var(--vt-paper);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--vt-r);
  box-shadow: var(--vt-clay);
  padding: 24px;
  color: var(--vt-ink);
}
@media (min-width: 576px) { .vt-card { padding: 32px; } }
.vt-card--narrow { max-width: 440px; }
.vt-card--form { max-width: 640px; }
.vt-card--lg { border-radius: var(--vt-r-lg); box-shadow: var(--vt-clay-lg); }
/* card with the round logo badge sitting on its top edge */
.vt-card--badged { max-width: 440px; border-radius: var(--vt-r-lg); box-shadow: var(--vt-clay-lg); padding: 64px 24px 28px; margin-top: 44px; }
@media (min-width: 576px) { .vt-card--badged { padding: 72px 40px 36px; } }
/* long forms (register): same badge + gateway feel, wider body */
.vt-card--badged.vt-card--wide { max-width: 720px; }

/* ---------- logo badge + sparkles ---------- */
.vt-badge {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 104px; height: 104px;
}
.vt-badge__disc {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: var(--vt-butter-s);
  border: 5px solid var(--vt-paper);
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: 0 10px 22px -10px rgba(201, 154, 43, .6), inset 0 -4px 0 rgba(201, 154, 43, .18);
}
.vt-badge__disc img { width: 58px; height: 58px; object-fit: contain; }
.vt-spark { position: absolute; color: var(--vt-peach-d); }
.vt-spark--1 { width: 22px; top: -2px; right: -14px; }
.vt-spark--2 { width: 14px; bottom: 10px; left: -14px; color: var(--vt-sage-d); }

/* ---------- headings ---------- */
.vt-title {
  font-family: var(--vt-font-head);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.45;
  text-align: center;
  color: var(--vt-ink);
  margin: 0 0 30px;
  text-wrap: balance;
}
.vt-title--left { text-align: left; }
.vt-subtitle { color: var(--vt-ink-2); font-size: 1rem; margin: -22px 0 24px; text-align: center; }

/* ---------- event panel + tag ---------- */
.vt-event {
  position: relative;
  margin: 0 0 28px;
  padding: 14px 18px 16px;
  background: var(--vt-peach-s);
  border-radius: 22px;
  text-align: center;
  box-shadow: inset 0 -3px 0 rgba(176, 79, 44, .1);
}
.vt-event__name {
  font-family: var(--vt-font-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--vt-peach-d);
  margin: 0;
  text-wrap: balance;
}
.vt-event__name span { display: block; }
.vt-event__name span + span { font-size: 1.02rem; font-weight: 600; color: var(--vt-ink); }
.vt-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 12px;
  background: var(--vt-butter);
  color: #5C420B;
  font-size: .8rem; font-weight: 700; line-height: 1.6;
  border-radius: var(--vt-r-pill);
  box-shadow: var(--vt-clay-sm);
  white-space: nowrap;
}
.vt-tag svg { width: 12px; height: 12px; }
.vt-event > .vt-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }

/* ---------- chips ---------- */
.vt-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: var(--vt-r-pill);
  background: var(--vt-paper);
  color: var(--vt-ink);
  font-size: var(--vt-text-min); font-weight: 600; line-height: 1.6;
  box-shadow: var(--vt-clay-sm);
}
.vt-chip--sage { background: var(--vt-sage-s); color: #35584A; }
.vt-chip--peach { background: var(--vt-peach-s); color: #8A3D22; }
.vt-chip--butter { background: var(--vt-butter-s); color: #6B4D0E; }
.vt-chip--sky { background: var(--vt-sky-s); color: #365577; }
.vt-chip--rose { background: var(--vt-rose-s); color: #8E3A3E; }

/* ---------- form fields ---------- */
.vt-field { margin-bottom: 24px; }
.vt-label {
  display: block;
  color: var(--vt-ink);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 8px;
}
.vt-label .vt-req { color: var(--vt-rose-d); }
.vt-input-group {
  display: flex; align-items: stretch;
  background: #fff;
  border: 2px solid var(--vt-line-2);
  border-radius: var(--vt-r-md);
  box-shadow: var(--vt-inset);
  transition: border-color var(--vt-dur) var(--vt-ease-out), box-shadow var(--vt-dur) var(--vt-ease-out);
  overflow: hidden;
}
.vt-input-group:focus-within { border-color: var(--vt-sage-d); box-shadow: var(--vt-inset), var(--vt-focus-ring); }
.vt-input-group.is-invalid { border-color: var(--vt-rose-d); }
.vt-input-icon {
  display: grid; place-items: center;
  flex: 0 0 44px; width: 44px; margin: 6px 0 6px 6px;
  background: var(--vt-sage-s);
  border-radius: 13px;
  color: var(--vt-sage-d);
  font-size: 1.05rem;
}
.vt-input {
  flex: 1 1 auto; min-width: 0;
  height: 56px;
  border: 0; border-radius: 0; outline: 0;
  background: transparent;
  padding: 0 16px 0 12px;
  margin: 0;
  font-family: var(--vt-font);
  font-size: 1.1rem; /* ≥16px: no iOS focus zoom */
  font-weight: 600;
  line-height: 1.5;
  color: var(--vt-ink);
  caret-color: var(--vt-peach-d);
  font-variant-numeric: tabular-nums;
}
.vt-input:focus, .vt-input:focus-visible { outline: 0; } /* focus is shown on .vt-input-group:focus-within */
.vt-input::placeholder { color: var(--vt-placeholder); font-weight: 400; letter-spacing: 0; font-size: 1rem; opacity: 1; }
.vt-input--spaced { letter-spacing: .06em; }
.vt-help { color: var(--vt-ink-2); font-size: .9rem; margin-top: 8px; padding-left: 4px; }
.vt-error { color: var(--vt-rose-d); font-size: .9rem; font-weight: 600; margin-top: 8px; padding-left: 4px; }

/* ---------- buttons ---------- */
.vt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--vt-r-md);
  font-family: var(--vt-font);
  font-size: 1.05rem; font-weight: 700; line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--vt-dur) var(--vt-ease-out), box-shadow var(--vt-dur) var(--vt-ease-out), background-color var(--vt-dur) var(--vt-ease-out), filter var(--vt-dur);
}
.vt-btn:hover { transform: translateY(-2px); }
.vt-btn:active { transform: translateY(1px); }
.vt-btn:disabled, .vt-btn[aria-disabled="true"] { opacity: .55; filter: grayscale(.3); cursor: not-allowed; transform: none; }
.vt-btn--block { display: flex; width: 100%; }
.vt-btn--lg { min-height: 56px; font-size: 1.15rem; }

/* primary: terracotta clay (white text ≥4.4:1) */
.vt-btn--primary {
  background: var(--vt-btn-peach);
  color: #fff;
  text-shadow: 0 1px 0 rgba(90, 35, 15, .25);
  box-shadow: var(--vt-clay-btn);
}
.vt-btn--primary:hover { color: #fff; filter: brightness(1.05); box-shadow: 0 14px 22px -10px rgba(169, 74, 41, .85), inset 0 -4px 0 rgba(0, 0, 0, .12), inset 0 2px 0 rgba(255, 255, 255, .3); }
.vt-btn--primary:active { box-shadow: 0 4px 8px -6px rgba(169, 74, 41, .8), inset 0 2px 0 rgba(0, 0, 0, .1); }
.vt-btn--primary .fa, .vt-btn--primary .vt-btn__arrow { transition: transform .2s var(--vt-ease-out); }
.vt-btn--primary:hover .fa, .vt-btn--primary:hover .vt-btn__arrow { transform: translateX(3px); }

/* sage: confirm / save */
.vt-btn--sage { background: var(--vt-btn-sage); color: #fff; box-shadow: 0 10px 18px -10px rgba(68, 112, 90, .8), inset 0 -4px 0 rgba(0, 0, 0, .12), inset 0 2px 0 rgba(255, 255, 255, .3); }
.vt-btn--sage:hover { color: #fff; filter: brightness(1.05); }

/* danger */
.vt-btn--rose { background: var(--vt-btn-rose); color: #fff; box-shadow: 0 10px 18px -10px rgba(169, 69, 73, .8), inset 0 -4px 0 rgba(0, 0, 0, .12), inset 0 2px 0 rgba(255, 255, 255, .3); }
.vt-btn--rose:hover { color: #fff; filter: brightness(1.05); }

/* secondary: paper clay */
.vt-btn--secondary {
  background: #fff;
  border: 2px solid var(--vt-line-2);
  color: var(--vt-ink);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--vt-clay-sm);
}
.vt-btn--secondary:hover { background: var(--vt-sky-s); border-color: var(--vt-sky); color: var(--vt-ink); }
.vt-btn--secondary .vt-muted { color: var(--vt-ink-2); font-weight: 500; }

/* ghost: text-only action */
.vt-btn--ghost { background: transparent; color: var(--vt-ink); box-shadow: none; min-height: 44px; padding: 0 14px; }
.vt-btn--ghost:hover { background: var(--vt-peach-s); transform: none; }

/* icon-only (always pair with aria-label) */
.vt-btn--icon { width: 44px; min-height: 44px; padding: 0; border-radius: var(--vt-r-sm); }

/* ---------- divider ---------- */
.vt-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--vt-ink-2); font-size: .9rem; }
.vt-divider::before, .vt-divider::after { content: ''; flex: 1; height: 0; border-top: 2px dashed var(--vt-line-2); }

/* ---------- alerts ---------- */
.vt-alert {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  border: 0;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-weight: 500;
  line-height: 1.6;
}
.vt-alert--dismissible { padding-right: 44px; }
.vt-alert--danger { background: var(--vt-rose-s); color: #8E3A3E; }
.vt-alert--success { background: var(--vt-sage-s); color: #35584A; }
.vt-alert--info { background: var(--vt-sky-s); color: #365577; }
.vt-alert--warning { background: var(--vt-butter-s); color: #6B4D0E; }
.vt-alert .btn-close, .vt-alert__close { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 32px; height: 32px; padding: 0; box-shadow: none; }

/* ---------- empty / error / loading state ---------- */
.vt-state {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  padding: 40px 20px;
  color: var(--vt-ink-2);
}
.vt-state__icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--vt-butter-s);
  color: var(--vt-butter-d);
  font-size: 1.6rem;
  box-shadow: var(--vt-clay-sm);
}
.vt-state--error .vt-state__icon { background: var(--vt-rose-s); color: var(--vt-rose-d); }
.vt-state__title { font-family: var(--vt-font-head); font-weight: 700; font-size: 1.15rem; color: var(--vt-ink); margin: 4px 0 0; }
.vt-state__text { margin: 0; max-width: 42ch; }

/* ---------- motion: one moment — card lands, badge pops, stars twinkle ---------- */
@media (prefers-reduced-motion: no-preference) {
  .vt-anim-land { animation: vt-land .7s var(--vt-ease-out) both; }
  .vt-badge__disc { animation: vt-pop .7s .18s var(--vt-ease-out) both; }
  .vt-spark { animation: vt-twinkle 2.8s ease-in-out infinite; }
  .vt-spark--2 { animation-delay: 1.3s; }
  .vt-sky svg { animation: vt-bob 7s ease-in-out infinite; }
  .vt-sky .vt-star--3, .vt-sky .vt-star--6 { animation-delay: -2.4s; animation-duration: 8.5s; }
  .vt-sky .vt-star--4, .vt-sky .vt-star--5 { animation-delay: -4.6s; }
}
@keyframes vt-land { from { opacity: .001; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes vt-pop { from { transform: scale(.6) rotate(-12deg); } to { transform: none; } }
@keyframes vt-twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .55; transform: scale(.78) rotate(18deg); } }
@keyframes vt-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------- SweetAlert2 / toastr inside a .vt-ui page ---------- */
.vt-ui .swal2-popup { font-family: var(--vt-font); border-radius: 28px; background: var(--vt-paper); color: var(--vt-ink); box-shadow: var(--vt-clay-lg); }
.vt-ui .swal2-title { font-family: var(--vt-font-head); color: var(--vt-ink); line-height: 1.5; }
.vt-ui .swal2-html-container { color: var(--vt-ink-2); line-height: 1.6; }
.vt-ui .swal2-styled { border-radius: 14px; font-family: var(--vt-font); font-weight: 700; padding: .6em 1.4em; }
.vt-ui .swal2-styled.swal2-confirm { background: var(--vt-btn-peach); color: #fff; }
.vt-ui .swal2-styled.swal2-cancel { background: var(--vt-line); color: var(--vt-ink); }
.vt-ui .swal2-styled:focus { box-shadow: 0 0 0 4px var(--vt-sage-s); }
.vt-ui .swal2-loader { border-color: var(--vt-peach-d) transparent var(--vt-peach-d) transparent; }
.vt-ui .swal2-icon.swal2-success { border-color: var(--vt-sage); color: var(--vt-sage-d); }
.vt-ui .swal2-icon.swal2-success [class^="swal2-success-line"] { background-color: var(--vt-sage-d); }
.vt-ui .swal2-icon.swal2-info, .vt-ui .swal2-icon.swal2-question { border-color: var(--vt-sky); color: var(--vt-sky-d); }
.vt-ui .swal2-icon.swal2-error { border-color: var(--vt-rose); }
.vt-ui .swal2-icon.swal2-error [class^="swal2-x-mark-line"] { background-color: var(--vt-rose-d); }
.vt-ui #toast-container > div { font-family: var(--vt-font); border-radius: 16px; opacity: 1; box-shadow: var(--vt-clay-sm); }
.vt-ui #toast-container > .toast-error { background-color: var(--vt-rose-d); }
.vt-ui #toast-container > .toast-success { background-color: var(--vt-sage-d); }

/* ---------- context chip on the Vuexy top bar (topbar.php, collective_work pages only) ---------- */
.vt-ctx-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 0; max-width: 46vw;
  margin-left: 8px; padding: 6px 14px;
  border-radius: var(--vt-r-pill);
  background: var(--vt-butter-s); color: var(--vt-ink);
  font-family: var(--vt-font); font-size: 14px; font-weight: 600; line-height: 1.5;
  box-shadow: var(--vt-clay-sm);
  white-space: nowrap;
}
.vt-ctx-chip svg { flex: 0 0 16px; width: 16px; height: 16px; color: var(--vt-peach-d); }
.vt-ctx-chip__prov { overflow: hidden; text-overflow: ellipsis; }
.vt-ctx-chip__year { padding-left: 8px; border-left: 2px dashed var(--vt-line-2); color: var(--vt-ink-2); font-weight: 500; }
@media (max-width: 575.98px) { .vt-ctx-chip { padding: 4px 10px; font-size: var(--vt-text-min); max-width: 58vw; } }

/* ---------- mobile bottom nav (built by vstar-common.js for staff pages) ---------- */
.vt-bottomnav { display: none; }
@media (max-width: 860px) {
  .vt-bottomnav {
    display: flex; justify-content: space-around; gap: 4px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 1030;
    padding: 8px; border-radius: 26px;
    background: var(--vt-sage-s); box-shadow: var(--vt-clay);
    font-family: var(--vt-font);
  }
  .vt-bottomnav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    flex: 1 1 0; min-width: 0; min-height: 52px; padding: 4px 4px; border-radius: 18px;
    color: var(--vt-ink-2); font-size: var(--vt-text-min); font-weight: 600; line-height: 1.5; text-decoration: none;
  }
  .vt-bottomnav__ic { position: relative; display: inline-flex; }
  .vt-bottomnav__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vt-bottomnav__no {
    position: absolute; top: -6px; right: -12px;
    display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px;
    background: var(--vt-peach-s); color: #8A3D22; font: 700 12px/1 var(--vt-font); box-shadow: 0 0 0 2px var(--vt-sage-s);
  }
  .vt-bottomnav__no.is-done { background: var(--vt-sage-d); color: #fff; }
  .vt-bottomnav a.on .vt-bottomnav__no { box-shadow: 0 0 0 2px var(--vt-paper); }
  .vt-bottomnav a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .vt-bottomnav a.on { background: var(--vt-paper); color: var(--vt-ink); box-shadow: var(--vt-clay-sm); }
  .vt-bottomnav a.on svg { color: var(--vt-peach-d); }
  .vt-bottomnav a:focus-visible { outline: 3px solid var(--vt-sage-d); outline-offset: 2px; }
  /* keep page content clear of the bar */
  html.vt-has-bottomnav body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  html.vt-has-bottomnav .footer, html.vt-has-bottomnav .unsaved-bar { margin-bottom: 84px; }
}
/* ---------- first-run guide: short checklist that ticks itself (certificate_config) ---------- */
.vt-guide {
  margin: 0 0 16px; padding: 14px 18px 16px;
  background: var(--vt-butter-s); border-radius: var(--vt-r-md);
  box-shadow: var(--vt-clay-sm); color: var(--vt-ink); font-family: var(--vt-font);
}
.vt-guide__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.vt-guide__title { margin: 0; font-family: var(--vt-font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.5; color: var(--vt-ink); }
.vt-guide__title i { color: var(--vt-butter-d); margin-right: 4px; }
.vt-guide__hide { min-height: 40px; padding: 0 14px; border: 2px solid var(--vt-line-2); border-radius: var(--vt-r-sm); background: var(--vt-paper); color: var(--vt-ink); font: 600 14px/1.5 var(--vt-font); }
.vt-guide__hide:hover { background: #fff; }
.vt-guide__hide:focus-visible { outline: 3px solid var(--vt-sage-d); outline-offset: 2px; }
.vt-guide__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.vt-guide__step { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--vt-r-sm); background: var(--vt-paper); }
.vt-guide__no {
  display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--vt-peach-s); color: #8A3D22; font-weight: 700; font-size: 14px; /* On-Soft Rule */
}
.vt-guide__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.vt-guide__body strong { font-size: 15px; }
.vt-guide__body small { color: var(--vt-ink-2); font-size: 14px; }
.vt-guide__step.is-done .vt-guide__no { background: var(--vt-sage-d); color: #fff; }
.vt-guide__step { transition: background-color var(--vt-dur) var(--vt-ease-out); }
.vt-guide__step.is-done { background: var(--vt-sage-s); }
.vt-guide__step.is-done .vt-guide__body small { color: #35584A; } /* On-Soft Rule */
@media (prefers-reduced-motion: no-preference) {
  .vt-guide__step.is-done .vt-guide__no i { animation: vt-guide-check .32s var(--vt-ease-out) both; }
}
@keyframes vt-guide-check { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* ---------- login gate (lib/inc_login_gate.php): หน้าประตูเมื่อเซสชันผู้ประสานงานหมดอายุ ---------- */
.vt-gate__title { margin-bottom: 10px; }
.vt-gate__lead { margin: 0 auto 24px; max-width: 40ch; text-align: center; color: var(--vt-ink-2); line-height: 1.65; text-wrap: pretty; }
.vt-gate__lead span { white-space: nowrap; }
.vt-gate__dest {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 24px; padding: 14px 16px;
  border: 2px dashed var(--vt-line-2); border-radius: var(--vt-r-md);
  background: var(--vt-paper);
}
.vt-gate__dest-icon { margin: 0; height: 44px; align-self: flex-start; }
.vt-gate__dest-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vt-gate__dest-label { font-size: var(--vt-text-min, 14px); color: var(--vt-ink-2); line-height: 1.5; }
.vt-gate__dest-page { font-family: var(--vt-font-head); font-size: 1.15rem; font-weight: 700; color: var(--vt-ink); line-height: 1.5; overflow-wrap: anywhere; }
.vt-gate__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vt-gate__chips .vt-chip { font-size: 14px; font-weight: 600; line-height: 1.5; }
.vt-gate__g { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: inset 0 -2px 0 rgba(122, 86, 56, .12); }
.vt-gate__google.is-busy { pointer-events: none; filter: saturate(.85); }
.vt-gate .vt-divider { margin: 20px 0 16px; }

/* ---------- ช่องเลือกแบบพิมพ์ค้นหาได้ (vstar-common.js searchSelect · <select data-vt-search>) ---------- */
.vt-ss { position: fixed; z-index: 2100; display: flex; flex-direction: column; overflow: hidden; background: var(--vt-paper, #FFFAF3); color: var(--vt-ink, #4A3A2E); border: 1px solid var(--vt-line, #EEDFCB); border-radius: var(--vt-r-sm, 14px); box-shadow: var(--vt-clay-lg); font-family: var(--vt-font); font-size: 15px; }
.vt-ss__head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--vt-line, #EEDFCB); }
.vt-ss__head svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--vt-placeholder, #85705E); stroke-width: 2.2; stroke-linecap: round; }
.vt-ss__q { flex: 1 1 auto; min-width: 0; min-height: 36px; border: 2px solid var(--vt-line, #EEDFCB); border-radius: var(--vt-r-pill, 999px); padding: 4px 12px; background: #fff; color: inherit; font: inherit; }
.vt-ss__q::placeholder { color: var(--vt-placeholder, #85705E); }
.vt-ss__q:focus { outline: none; border-color: var(--vt-sage-d, #4A7560); box-shadow: var(--vt-focus-ring); }
.vt-ss__list { list-style: none; margin: 0; padding: 4px; overflow-y: auto; overscroll-behavior: contain; position: relative; }
.vt-ss__opt { padding: 7px 12px; border-radius: 10px; cursor: pointer; line-height: 1.5; }
.vt-ss__opt:hover, .vt-ss__opt.is-active { background: var(--vt-peach-s, #FBE1D3); }
.vt-ss__opt.is-cur { font-weight: 700; color: var(--vt-peach-d, #B04F2C); }
.vt-ss__empty { padding: 10px 12px; color: var(--vt-placeholder, #85705E); }
