:root {
  --ja-brand: #FFB700;
  --ja-brand-hover: #E6A500;
  --ja-brand-glow: rgba(255, 183, 0, 0.35);
  --ja-on-brand: #111111;
  --ja-red: var(--ja-brand);
  --ja-red-dark: var(--ja-brand-hover);
  --ja-red-glow: var(--ja-brand-glow);
  --ja-bg: linear-gradient(165deg, #FFF8E8 0%, #FFFDF8 46%, #F3F4F6 100%);
  --ja-card: #ffffff;
  --ja-surface: #ffffff;
  --ja-border: #E5E7EB;
  --ja-text: #1F2937;
  --ja-muted: #4B5563;
  --ja-label: #374151;
  --ja-input-bg: #ffffff;
  --ja-input-text: #111827;
  --ja-input-border: #CBD5E1;
  --ja-placeholder: #6B7280;
  --ja-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  --ja-radius: 14px;
  --ja-font: 'Sarabun', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ja-font);
  font-size: 16px;
  color: var(--ja-text);
  background: var(--ja-bg);
  background-attachment: fixed;
}

.ja-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.ja-hdr {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--ja-card);
  border: 1px solid var(--ja-border);
  border-top: 3px solid var(--ja-brand);
  border-radius: var(--ja-radius);
  box-shadow: var(--ja-shadow);
}

.ja-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--ja-red-glow);
}

.ja-hdr__title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  color: #C41E3A;
  background: linear-gradient(90deg, #C41E3A 0%, #E11D48 42%, #FFB700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ja-hdr__sub {
  margin: 4px 0 0;
  color: var(--ja-muted);
  font-size: 0.95rem;
}

.ja-form { display: flex; flex-direction: column; gap: 20px; }

.ja-section {
  padding: 22px 24px;
  background: var(--ja-card);
  border: 1px solid var(--ja-border);
  border-radius: var(--ja-radius);
  box-shadow: var(--ja-shadow);
  overflow: visible;
}

.ja-section__title {
  margin: 0 0 18px;
  padding-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  border-bottom: 2px solid var(--ja-brand);
  color: #1F2937;
  background: linear-gradient(90deg, #1F2937 0%, #B45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ja-subsection { margin-top: 16px; overflow: visible; }
.ja-subsection__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; margin-bottom: 12px;
}
.ja-subsection__head h3 { margin: 0; }
.ja-subsection h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--ja-muted);
  font-weight: 600;
}
.ja-hint { font-size: 0.8rem; color: var(--ja-muted); font-weight: 400; }
.ja-section__hint {
  margin: -8px 0 16px;
  font-size: 0.88rem;
  color: var(--ja-muted);
  line-height: 1.45;
}
.ja-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: var(--ja-text); cursor: pointer; user-select: none;
}
.ja-check input {
  width: 17px; height: 17px; accent-color: var(--ja-red);
  cursor: pointer; flex-shrink: 0;
}
.ja-field .is-readonly,
.is-readonly,
.ja-ac__input.ja-ac--locked {
  opacity: 0.88;
  background: #f1f5f9 !important;
  color: #334155 !important;
  cursor: not-allowed;
}

.ja-grid { display: grid; gap: 14px 16px; overflow: visible; }
.ja-grid--2 { grid-template-columns: 1fr 1fr; }
.ja-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ja-grid .ja-field--full { grid-column: 1 / -1; }
.ja-grid--addr .ja-field--zip { max-width: 240px; }

@media (max-width: 720px) {
  .ja-grid--2, .ja-grid--3 { grid-template-columns: 1fr; }
  .ja-grid--addr .ja-field--zip { max-width: none; }
  .ja-personal { flex-direction: column !important; }
}

.ja-field { display: flex; flex-direction: column; gap: 6px; overflow: visible; }
.ja-field--ac-open { position: relative; z-index: 90; }
.ja-label { font-size: 0.85rem; color: var(--ja-label); font-weight: 600; }
.ja-field--req .ja-label::after { content: ' *'; color: #C41E3A; }

.ja-field input, .ja-field select, .ja-field textarea, .ja-input {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 1rem;
  color: var(--ja-input-text);
  background: var(--ja-input-bg);
  border: 1.5px solid var(--ja-input-border);
  border-radius: 8px;
}

.ja-field input::placeholder,
.ja-field textarea::placeholder,
.ja-input::placeholder {
  color: var(--ja-placeholder);
  font-size: 0.9rem;
}

.ja-field input:focus, .ja-field select:focus, .ja-field textarea:focus {
  outline: none;
  border-color: var(--ja-red);
  box-shadow: 0 0 0 3px var(--ja-red-glow);
}

.ja-field input.is-invalid, .ja-field select.is-invalid { border-color: #ff4757; }

.ja-personal { display: flex; gap: 24px; align-items: flex-start; }

.ja-photo {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ja-photo__frame {
  position: relative;
  width: 140px;
  height: 175px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--ja-red);
  box-shadow: 0 0 24px var(--ja-red-glow);
  background: #111;
}

.ja-photo__frame.is-idle {
  border-color: var(--ja-input-border);
  box-shadow: none;
}

.ja-photo__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(241, 245, 249, 0.35);
  background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
}

.ja-photo__placeholder[hidden] {
  display: none;
}

.ja-photo__frame video, .ja-photo__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ja-photo__frame.is-review {
  border-color: #fbbf24;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.35);
}

.ja-photo__frame.is-confirmed {
  border-color: #4ade80;
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.35);
}

.ja-photo__frame.is-invalid {
  border-color: #f87171;
  box-shadow: 0 0 24px rgba(248, 113, 113, 0.45);
}

.ja-photo__badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(22, 163, 74, 0.92));
}

.ja-photo__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ja-muted);
  text-align: center;
  line-height: 1.4;
}

.ja-photo__hint--req { color: #B45309; }
.ja-photo__hint--ok { color: #15803d; }
.ja-photo__hint--error { color: #dc2626; }

.ja-photo__toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #F3F4F6;
  border: 1px solid var(--ja-border);
}

.ja-photo-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D1D5DB;
  background: #fff;
  color: #1F2937;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ja-photo-btn:hover {
  background: #FFF8E8;
  border-color: var(--ja-brand);
  transform: translateY(-1px);
}

.ja-photo-btn:active {
  transform: translateY(0);
}

.ja-photo-btn--ok {
  background: var(--ja-brand);
  border-color: transparent;
  color: var(--ja-on-brand);
  box-shadow: 0 4px 14px var(--ja-brand-glow);
}

.ja-photo-btn--ok:hover {
  background: var(--ja-brand-hover);
  box-shadow: 0 6px 18px var(--ja-brand-glow);
}

.ja-photo-btn--text {
  width: auto;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.ja-photo-btn[hidden] {
  display: none;
}

.ja-foot__note--warn {
  color: #B45309;
}

.ja-msg--ok {
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
}

.ja-branch-pick { display: flex; gap: 8px; }
.ja-branch-pick input { flex: 1; }

.ja-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.ja-btn--primary {
  background: var(--ja-brand);
  color: var(--ja-on-brand);
  box-shadow: 0 4px 16px var(--ja-brand-glow);
  font-size: 1.05rem;
  padding: 14px 32px;
}
.ja-btn--primary:hover {
  background: var(--ja-brand-hover);
}

.ja-btn--ghost {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid var(--ja-brand);
}
.ja-btn--ghost:hover {
  background: var(--ja-brand);
  color: var(--ja-on-brand);
}

.ja-btn--link {
  background: none;
  color: var(--ja-brand);
  padding: 4px;
  font-size: 0.85rem;
  text-decoration: underline;
}

.ja-btn--xs { padding: 6px 12px; font-size: 0.85rem; }
.ja-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ja-repeat { margin-top: 10px; }
.ja-draft-hint {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--ja-muted);
  line-height: 1.35;
}
.ja-repeat-empty {
  margin: 0 0 6px;
  padding: 8px 10px;
  font-size: 0.84rem;
  color: var(--ja-muted);
  background: #F9FAFB;
  border: 1px dashed #D1D5DB;
  border-radius: 8px;
  text-align: center;
}
.ja-repeat-empty[hidden] { display: none; }
.ja-repeat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--ja-muted);
}

.ja-repeat__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ja-repeat-row {
  display: grid;
  gap: 6px;
  margin-bottom: 0;
  align-items: center;
}

.ja-repeat-row--edu {
  grid-template-columns: 1fr 0.55fr 1.15fr 0.95fr 0.5fr auto;
}

.ja-repeat-row--exp {
  grid-template-columns: 1.25fr 0.95fr 0.55fr 0.55fr auto;
}

.ja-repeat-row--head {
  margin-bottom: 4px;
  padding: 0 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ja-muted);
  text-transform: none;
  letter-spacing: 0;
}

.ja-repeat-row--head span:last-child {
  width: auto;
}

.ja-repeat-row--saved {
  padding: 6px 8px;
  background: #F9FAFB;
  border: 1px solid var(--ja-border);
  border-radius: 8px;
}

.ja-saved-cell {
  font-size: 0.92rem;
  line-height: 1.25;
  color: #1F2937;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ja-saved-cell--year,
.ja-saved-cell--gpa,
.ja-saved-cell--startYear,
.ja-saved-cell--stopYear {
  color: #4B5563;
  font-variant-numeric: tabular-nums;
}

.ja-saved-del {
  padding: 4px 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.ja-repeat-row input[type="hidden"] {
  display: none;
}

@media (max-width: 720px) {
  .ja-repeat-row--head {
    display: none;
  }

  .ja-repeat-row--saved.ja-repeat-row--edu,
  .ja-repeat-row--saved.ja-repeat-row--exp {
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
  }

  .ja-saved-cell {
    white-space: normal;
    font-size: 0.88rem;
  }

  .ja-saved-del {
    grid-column: 1 / -1;
    justify-self: end;
    margin-top: 2px;
  }
}

.ja-checks { display: flex; flex-direction: column; gap: 10px; }
.ja-checks label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; }

.ja-inline-input {
  flex: 1;
  min-width: 160px;
  padding: 6px 10px;
  font: inherit;
  background: var(--ja-input-bg);
  border: 1.5px solid var(--ja-input-border);
  border-radius: 6px;
  color: var(--ja-input-text);
}

.ja-msg { padding: 14px 18px; border-radius: 8px; white-space: pre-line; }
.ja-msg--error { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }

.ja-foot { text-align: center; padding: 8px 0 24px; }
.ja-foot__note { margin: 12px 0 0; font-size: 0.82rem; color: var(--ja-muted); }
.ja-copy { text-align: center; font-size: 0.8rem; color: var(--ja-muted); margin-top: 16px; }

.ja-success {
  text-align: center;
  padding: 48px 24px;
  background: var(--ja-card);
  border: 1px solid var(--ja-border);
  border-radius: var(--ja-radius);
  box-shadow: var(--ja-shadow);
  margin-bottom: 24px;
}

.ja-success__icon {
  width: 64px; height: 64px; margin: 0 auto 16px; line-height: 64px;
  font-size: 2rem; background: linear-gradient(135deg, #2ed573, #1a9f52);
  border-radius: 50%; color: #fff;
}

.ja-success__hint { color: var(--ja-muted); font-size: 0.9rem; }

.ja-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ja-modal[hidden] { display: none !important; }
.ja-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.ja-modal__panel {
  position: relative; width: min(560px, 100%); max-height: 80vh;
  display: flex; flex-direction: column; background: #ffffff;
  border: 1px solid var(--ja-border); border-radius: var(--ja-radius); padding: 16px;
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.18);
}
.ja-modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--ja-text); font-weight: 700; }
.ja-modal__close { background: none; border: none; color: var(--ja-muted); font-size: 1.2rem; cursor: pointer; }
.ja-modal__list { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0; color: var(--ja-text); }
.ja-modal__foot { text-align: right; }

.ja-section--pdpa {
  border-color: #FECACA;
  background: linear-gradient(180deg, #FEF2F2 0%, var(--ja-surface) 70%);
}

.ja-section--pdpa.is-invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.ja-pdpa__body {
  max-height: none;
  overflow: visible;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.ja-pdpa__body p { margin: 0 0 10px; }
.ja-pdpa__body ul { margin: 0 0 10px; padding-left: 20px; }
.ja-pdpa__body li { margin-bottom: 4px; }
.ja-pdpa__note { color: var(--ja-muted); font-size: 0.82rem; }
.ja-pdpa__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--ja-border);
  background: #FFFBEB;
  cursor: pointer;
}
.ja-pdpa__agree input { margin-top: 3px; flex-shrink: 0; }
.ja-pdpa__agree input.is-invalid { outline: 2px solid #f87171; }
.ja-pdpa__agree span { line-height: 1.45; }

.ja-pdpa { max-width: 560px; }
.ja-pdpa__foot { display: flex; justify-content: flex-end; gap: 10px; }

/* ID card reader / OCR */
.ja-section--idcard { border: 1px dashed #F59E0B; }
.ja-idcard-hint { margin: 0 0 12px; color: var(--ja-muted); font-size: 0.92rem; }
.ja-idcard-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ja-card-status { min-height: 1.4em; margin: 10px 0 0; font-size: 0.92rem; color: var(--ja-muted); }
.ja-card-status--ok { color: #15803d; }
.ja-card-status--warn { color: #B45309; }
.ja-card-status--error { color: #dc2626; }
.ja-card-status--info { color: #1d4ed8; }

.ja-card-checks { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ja-card-checks[hidden] { display: none !important; }
.ja-card-check {
  padding: 4px 10px; border-radius: 999px; font-size: 0.82rem;
  background: #F3F4F6; border: 1px solid var(--ja-border);
}
.ja-card-check--ok { border-color: #86efac; color: #166534; background: #ecfdf5; }
.ja-card-check--no { border-color: #fca5a5; color: #b91c1c; background: #fef2f2; }

.ja-card-preview { margin: 14px 0 0; }
.ja-card-preview[hidden] { display: none !important; }
.ja-card-preview img {
  display: block; max-width: 340px; width: 100%;
  border-radius: 10px; border: 1px solid var(--ja-border);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.ja-card-preview figcaption {
  margin-top: 6px; font-size: 0.8rem; color: var(--ja-muted);
}

/* Fullscreen ID card OCR overlay */
.ja-card-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: #000; display: flex; flex-direction: column;
}
.ja-card-overlay[hidden] { display: none !important; }
.ja-card-overlay__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}

.ja-card-guide {
  position: relative; z-index: 3; margin: 12px 12px 0;
  padding: 12px 14px 10px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.72); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}
.ja-card-guide__close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer;
  opacity: 0.85; line-height: 1;
}
.ja-card-guide__title {
  margin: 0 28px 8px 0; font-size: 0.88rem; font-weight: 600; color: #fff; line-height: 1.35;
}
.ja-card-guide__list {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px;
  font-size: 0.78rem; color: rgba(255,255,255,0.88);
}

.ja-card-frame-wrap {
  position: relative; z-index: 2; flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 12px 120px;
  pointer-events: none;
}
.ja-card-frame__inner {
  position: relative; width: min(92vw, 420px); aspect-ratio: 1.586;
  border: 3px solid #e53935;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.52);
  background: transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.ja-card-frame__inner--ready {
  border-color: #43a047;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.48), 0 0 24px rgba(67, 160, 71, 0.45);
}

.ja-card-zone {
  position: absolute; display: flex; align-items: center; justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  border-radius: 6px; background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92); font-size: 0.62rem; font-weight: 600;
  text-align: center; line-height: 1.15; padding: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.ja-card-zone span { pointer-events: none; }
.ja-card-zone--ok {
  border-color: rgba(129, 199, 132, 0.95);
  background: rgba(67, 160, 71, 0.18);
}
.ja-card-zone--garuda { top: 5%; left: 4%; width: 20%; height: 22%; }
.ja-card-zone--barcode {
  top: 26%; left: 2%; width: 11%; height: 58%;
  writing-mode: vertical-rl; text-orientation: mixed;
}
.ja-card-zone--chip { top: 36%; left: 20%; width: 15%; height: 20%; }
.ja-card-zone--photo { top: 7%; right: 4%; width: 34%; height: 80%; }

.ja-card-live {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(transparent, rgba(0,0,0,0.88) 28%);
}
.ja-card-live__warn {
  margin: 0 0 10px; font-size: 0.92rem; font-weight: 600;
  color: rgba(255, 255, 255, 0.88); text-align: center;
}
.ja-card-live__warn--ok { color: #81c784; }
.ja-card-live__btn {
  display: block; width: 100%; max-width: 360px; margin: 0 auto;
}
.ja-card-live__btn:disabled { opacity: 0.45; cursor: not-allowed; }

.ja-card-review-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 11px;
  background: #111;
}
.ja-card-overlay--review .ja-card-zone { opacity: 0; pointer-events: none; }
.ja-card-overlay--review .ja-card-frame__inner {
  border-color: #43a047;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.48), 0 0 24px rgba(67, 160, 71, 0.45);
}

.ja-card-review {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(transparent, rgba(0,0,0,0.92) 22%);
}
.ja-card-review__msg {
  margin: 0 0 12px; font-size: 0.92rem; font-weight: 600;
  color: #fff; text-align: center; line-height: 1.4;
}
.ja-card-review__actions {
  display: flex; gap: 10px; max-width: 360px; margin: 0 auto;
}
.ja-card-review__actions .ja-btn { flex: 1; min-width: 0; }

@media (min-width: 520px) {
  .ja-card-guide__list { grid-template-columns: repeat(4, 1fr); }
  .ja-card-guide__title { font-size: 0.95rem; }
  .ja-card-zone { font-size: 0.68rem; }
}

/* Address autocomplete */
.ja-ac { position: relative; width: 100%; z-index: 1; }
.ja-ac__input { width: 100%; }
.ja-input--readonly {
  opacity: 1;
  color: var(--ja-text);
  background: #F3F4F6 !important;
  cursor: default;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.ja-ac__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 100;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  border: 1px solid var(--ja-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
}
.ja-ac__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--ja-text);
}
.ja-ac__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ja-ac__meta {
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: var(--ja-on-brand);
  background: rgba(255, 183, 0, 0.22);
  border: 1px solid rgba(255, 183, 0, 0.4);
  border-radius: 6px;
  padding: 2px 8px;
}
.ja-ac__item:hover,
.ja-ac__item.is-active {
  background: #FFF8E8;
  color: #1F2937;
}
.ja-ac__item:hover .ja-ac__meta,
.ja-ac__item.is-active .ja-ac__meta {
  color: #92400E;
  background: #FEF3C7;
  border-color: #F59E0B;
}
