:root {
  --ink: #0e2438;
  --navy: #0b355c;
  --navy-deep: #082844;
  --navy-mid: #164a78;
  --gold: #b8922a;
  --gold-soft: rgba(184, 146, 42, 0.16);
  --paper: #f3f6f9;
  --chalk: #ffffff;
  --mist: #c5d0dc;
  --slate: #4a5d70;
  --teal: #0c6b52;
  --danger: #b42318;
  --th-blue: var(--navy);
  --th-blue-light: var(--navy-mid);
  --th-blue-soft: #e8f0f7;
  --th-gold: var(--gold);
  --th-teal: var(--teal);
  --bg-page: var(--paper);
  --bg-page-glow: var(--paper);
  --surface: var(--chalk);
  --surface-alt: #f6f9fc;
  --border: var(--mist);
  --border-focus: var(--navy-mid);
  --text: var(--ink);
  --text-muted: var(--slate);
  --success: var(--teal);
  --radius: 8px;
  --shadow: 0 1px 0 rgba(14, 36, 56, 0.04), 0 12px 32px rgba(14, 36, 56, 0.07);
  --font: "IBM Plex Sans", "Sarabun", sans-serif;
  --vb-ink: #0f172a;
  --vb-primary: #12336b;
  --vb-accent: #0c3a66;
  --vb-paper: #f4f7fb;
  --vb-line: #dbe4f0;
  --font-display: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --type-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --type-label: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --type-lead: clamp(1.02rem, 0.95rem + 0.35vw, 1.125rem);
  --type-display: clamp(2.35rem, 1.7rem + 2.8vw, 3.5rem);
  --leading-body: 1.65;
  --leading-display: 1.12;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235a6d7f' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  --combo-toggle-w: clamp(2.75rem, 11vw, 3.25rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--type-body);
  font-weight: 400;
  letter-spacing: 0;
  line-height: var(--leading-body);
  color: var(--text);
  background:
    linear-gradient(180deg, #e8eef4 0%, var(--paper) 240px),
    var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -- Header: consular band -- */
.site-header {
  background: var(--navy-deep);
  color: #f4f7fb;
  border-bottom: 3px solid var(--gold);
  position: relative;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(184, 146, 42, 0.12), transparent 55%),
    linear-gradient(105deg, transparent 55%, rgba(22, 74, 120, 0.45) 100%);
  pointer-events: none;
}

.site-header-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 0.75fr);
  gap: 1.5rem 2rem;
  align-items: end;
}

@media (max-width: 720px) {
  .site-header-inner {
    grid-template-columns: 1fr;
    padding: 1.35rem 1rem 1.25rem;
  }
}

.site-header--service {
  background: var(--navy-deep);
}

.site-header--service .site-header-inner {
  padding: 1.75rem 1.25rem 1.6rem;
  align-items: end;
  gap: 1.5rem 2rem;
}

.site-hero {
  min-width: 0;
}

.site-mark {
  margin: 0 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(244, 247, 251, 0.72);
}

.site-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-display);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: var(--leading-display);
  color: #fff;
  text-wrap: balance;
}

.site-acronym {
  font-weight: 600;
  opacity: 0.92;
}

.site-lead {
  margin: 0.9rem 0 0;
  font-size: var(--type-lead);
  font-weight: 400;
  line-height: 1.65;
  max-width: 34rem;
  color: rgba(244, 247, 251, 0.92);
}

.site-lead strong {
  font-weight: 600;
  color: #fff;
}

.site-lead-note {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 40rem;
  opacity: 0.88;
}

.site-aside {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--gold);
  background: rgba(8, 40, 68, 0.45);
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(244, 247, 251, 0.82);
}

.site-aside p {
  margin: 0 0 0.45rem;
}

.site-aside p:last-child {
  margin-bottom: 0;
}

.site-aside strong {
  color: #fff;
  font-weight: 600;
}

.site-aside-soon {
  margin-top: 0.65rem !important;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 247, 251, 0.7);
}

.site-aside-soon em {
  font-style: normal;
  font-weight: 600;
  color: #f0d78a;
}

.site-soon {
  display: inline-block;
  padding: 0.08rem 0.45rem;
  margin-left: 0.15rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--gold-soft);
  border: 1px solid rgba(184, 146, 42, 0.45);
  color: #fff8e7;
}

.site-trust {
  display: none;
}

.site-trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.site-trust li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.site-title-block h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-title-block p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  opacity: 0.88;
  max-width: 36rem;
}

.site-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge.ready {
  background: rgba(46, 125, 50, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.badge.loading {
  background: rgba(201, 162, 39, 0.25);
}

.catalog-strip {
  background: var(--th-blue-soft);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.catalog-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
}

/* -- Layout -- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(340px, 30vw);
  gap: 1.5rem;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

/* -- Stepper -- */
.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stepper a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.stepper a:hover {
  background: var(--th-blue-soft);
  color: var(--th-blue);
}

.stepper a .num {
  display: inline-block;
  min-width: 1.25rem;
  height: 1.25rem;
  line-height: 1.25rem;
  text-align: center;
  background: var(--border);
  color: var(--text);
  border-radius: 50%;
  font-size: 0.7rem;
  margin-right: 0.35rem;
}

.stepper a:hover .num {
  background: var(--th-blue-light);
  color: #fff;
}

/* -- Sections -- */
.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(90deg, var(--th-blue-soft) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}

.section-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--th-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--th-blue);
}

.section-body {
  padding: 1.25rem;
}

.section-desc {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.section-desc.note {
  padding: 0.65rem 0.85rem;
  background: #fff8e6;
  border-left: 3px solid var(--th-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.form-section.collapsed-helper .section-body {
  padding-top: 0.75rem;
}

/* -- Fields -- */
.grid {
  display: grid;
  gap: 1rem 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-span-2 {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.field label > span.field-label,
.field > span.field-label {
  display: block;
  font-size: var(--type-label);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
  letter-spacing: 0;
  line-height: 1.35;
}

.field-label .req {
  color: var(--danger);
  margin-left: 0.15rem;
}

.field.is-conditional-hidden,
label.field.is-conditional-hidden {
  display: none;
}

.req-legend .req {
  margin-left: 0;
}

.field-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--slate);
  margin-top: 0.35rem;
  line-height: 1.45;
}

.field-optional {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
}

input,
select,
.tdac-combo-input {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--mist);
  background: var(--chalk);
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input:hover,
select:hover,
.tdac-combo-input:hover {
  border-color: #9eb4c8;
}

input:focus,
select:focus,
.tdac-combo-input:focus {
  outline: none;
}

input:focus-visible,
select:focus-visible,
.tdac-combo-input:focus-visible {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(11, 53, 92, 0.2);
}

input::placeholder,
.tdac-combo-input::placeholder {
  color: #6a7d90;
  opacity: 1;
}

select {
  appearance: none;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1rem 1rem;
  padding-right: 2.25rem;
  min-height: 2.75rem;
}

.combo-field {
  position: relative;
}

.tdac-combo {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tdac-combo:hover {
  border-color: #9eb4c8;
}

.tdac-combo:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(21, 101, 168, 0.18);
}

.tdac-combo.is-locked {
  background: var(--surface-alt);
  opacity: 0.92;
}

.tdac-combo.is-locked .tdac-combo-input,
.tdac-combo.is-locked .tdac-combo-toggle {
  cursor: not-allowed;
}

.tdac-combo.is-locked .tdac-combo-toggle:disabled {
  opacity: 0.55;
}

.tdac-combo-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  padding: 0.6rem 0.65rem;
  border: none !important;
  border-radius: var(--radius) 0 0 var(--radius);
  background: transparent !important;
  box-shadow: none !important;
}

.tdac-combo-input:hover,
.tdac-combo-input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none;
}

.tdac-combo-toggle {
  flex: 0 0 var(--combo-toggle-w);
  width: var(--combo-toggle-w);
  min-width: var(--combo-toggle-w);
  margin: 0;
  padding: 0;
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
  background-color: var(--surface-alt);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.tdac-combo-toggle:hover {
  background-color: var(--th-blue-soft);
}

.tdac-combo-toggle:active {
  background-color: #dceaf8;
}

.tdac-combo-toggle:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: -2px;
  z-index: 1;
}

.tdac-combo-toggle .tdac-combo-chevron {
  display: block;
  margin: 0 auto;
  color: var(--text-muted);
  pointer-events: none;
}

.tdac-combo-toggle:hover .tdac-combo-chevron,
.tdac-combo-toggle:focus-visible .tdac-combo-chevron {
  color: var(--th-blue-light);
}

.tdac-combo-list {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  max-height: min(240px, 45vh);
  overflow-y: auto;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border-focus);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(11, 61, 107, 0.15);
}

.tdac-combo-list li {
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 1px solid #f0f4f8;
}

.tdac-combo-list li:last-child {
  border-bottom: none;
}

.tdac-combo-list li:hover,
.tdac-combo-list li:focus {
  background: var(--th-blue-soft);
  color: var(--th-blue);
}

.tdac-combo-status {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  min-height: 1em;
}

.dob-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.5rem;
}

.dob-row input {
  text-align: center;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  grid-column: 1 / -1;
  padding: 0.5rem 0.65rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
}

.checkbox-row input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--th-blue-light);
}

.checkbox-row .field-label-inline {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

/* -- Upload -- */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 980px) {
  .upload-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .upload-grid {
    grid-template-columns: 1fr;
  }
}

.upload-block--stay {
  border-left-color: var(--th-blue-light, #2f6f9f);
}

.upload-block {
  border: 1px solid var(--mist);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.05rem 1rem 1rem;
  background: var(--chalk);
  box-shadow: var(--shadow);
}

.upload-block h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.upload-block p,
.upload-block-hint {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.passport-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border: 2px dashed #b0c4d8;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  background: #fff;
  font-size: 0.88rem;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--th-blue-light);
  background: var(--th-blue-soft);
  color: var(--th-blue);
}

.passport-preview-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.passport-preview-wrap img {
  max-width: 120px;
  max-height: 90px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
}

/* -- Buttons -- */
.btn {
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:not(:disabled):active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--navy);
  color: #fff;
  box-shadow: none;
  min-width: 200px;
  padding: 0.78rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid var(--navy-deep);
}

.btn.primary:not(:disabled):hover {
  background: var(--navy-mid);
  box-shadow: 0 6px 18px rgba(11, 53, 92, 0.22);
}

.btn.secondary {
  background: var(--chalk);
  color: var(--navy);
  border: 1px solid var(--mist);
}

.btn.secondary:not(:disabled):hover {
  background: var(--th-blue-soft);
  border-color: var(--navy-mid);
}

.actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.actions-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
}

.status-line {
  font-size: 0.82rem;
  line-height: 1.4;
  min-height: 1.2rem;
  margin: 0.4rem 0 0;
  color: var(--text-muted);
}

.status-line.error {
  color: var(--danger);
}

.status-line.ok {
  color: var(--success);
}

/* -- Sidebar -- */
.log-panel {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.log-panel-head {
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #0a3a62, #124a7a);
  color: #fff;
}

.log-panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.log-output {
  flex: 1;
  overflow: auto;
  margin: 0;
  padding: 1rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #3d5166;
  white-space: pre-wrap;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  background: linear-gradient(180deg, #fbfcfe, #f4f7fb);
  min-height: 200px;
}

/* -- Footer -- */
.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: #fff;
}

.site-footer a {
  color: var(--th-blue-light);
}

[data-accom-section][hidden] {
  display: none !important;
}

/* -- Compact wizard UX -- */
.wizard-app {
  padding-bottom: 4.5rem;
}

.site-header--compact .site-header-inner {
  padding: 0.65rem 1.25rem;
}

.site-header--compact .site-title-block h1 {
  font-size: 1.1rem;
}

.site-tagline {
  margin: 0.55rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  opacity: 0.72;
  max-width: 40rem;
}

@media (max-width: 720px) {
  .site-header--service .site-header-inner {
    padding: 1.1rem 1.15rem 1.25rem;
  }

  .site-trust {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    width: 100%;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

.wizard-chrome {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(197, 208, 220, 0.95);
  box-shadow: 0 8px 28px rgba(14, 36, 56, 0.06);
  position: sticky;
  top: 0;
  z-index: 40;
}

.wizard-chrome-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.85rem 1.15rem 0.95rem;
}

.wizard-chrome-bar {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.wizard-chrome-progress {
  flex: 1;
  min-width: 0;
}

.wizard-chrome-label {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-chrome-activity {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 53, 92, 0.18);
  background: #f4f7fb;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-chrome-activity svg {
  color: var(--gold);
}

.btn-chrome-activity:hover {
  background: var(--th-blue-soft);
  border-color: rgba(11, 53, 92, 0.28);
}

.btn-chrome-activity.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy-deep);
  box-shadow: 0 6px 16px rgba(11, 53, 92, 0.22);
}

.btn-chrome-activity.is-active svg {
  color: #f0d78a;
}

.btn-chrome-activity:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.progress-rail {
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, #9a7a22, #d4b45a);
  border-radius: 999px;
  transition: width 0.28s ease;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
  position: relative;
}

.progress-steps::-webkit-scrollbar {
  display: none;
}

.progress-step-btn {
  appearance: none;
  border: 1px solid transparent;
  background: #f5f8fb;
  font-family: inherit;
  color: var(--slate);
  padding: 0.55rem 0.4rem 0.5rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.progress-step-num {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fff;
  color: var(--slate);
  border: 1px solid #d5dee8;
  line-height: 1;
}

.progress-step-label {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.progress-step-btn:hover {
  background: #eaf1f8;
  border-color: #c9d7e6;
  color: var(--navy);
}

.progress-step-btn:hover .progress-step-num {
  border-color: #a8bdd0;
  color: var(--navy);
}

.progress-step-btn.is-active {
  background: linear-gradient(180deg, #124a78 0%, #0b355c 100%);
  border-color: #082844;
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 53, 92, 0.24);
}

.progress-step-btn.is-active .progress-step-num {
  background: #f0d78a;
  border-color: #f0d78a;
  color: #0b355c;
}

.progress-step-btn.is-active .progress-step-label {
  color: #fff;
}

.progress-step-btn.is-done {
  background: #e8f0f7;
  border-color: #c5d6e6;
  color: var(--navy);
}

.progress-step-btn.is-done .progress-step-num {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.progress-step-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.layout--wizard {
  grid-template-columns: 1fr;
  max-width: 640px;
  padding: 1rem 1rem 1.25rem;
  gap: 0;
}

.wizard-step {
  display: none;
  animation: step-in 0.2s ease;
}

.wizard-step.is-active {
  display: block;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-section {
  margin-bottom: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.section-body--compact {
  padding: 0.25rem 0 0;
}

.section-desc--lead {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 42rem;
}

.section-desc--inline {
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.section-desc--tight {
  margin-bottom: 0.65rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
}

.field-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--th-blue-light);
  margin: 0.35rem 0 0.15rem;
  grid-column: 1 / -1;
}

.grid {
  gap: 0.65rem 0.85rem;
}

input,
select {
  padding: 0.48rem 0.65rem;
  font-size: 0.9rem;
}

.tdac-combo {
  min-height: 2.5rem;
}

.tdac-combo-input {
  padding: 0.48rem 0.55rem;
  font-size: 0.9rem;
}

.field label > span.field-label {
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.checkbox-row {
  padding: 0.4rem 0.55rem;
}

.upload-grid {
  gap: 0.65rem;
}

.upload-block {
  padding: 0.65rem 0.75rem;
}

.upload-block h3 {
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}

.upload-block p,
.upload-block-hint {
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
}

.dropzone {
  min-height: 72px;
  padding: 0.65rem;
  font-size: 0.82rem;
}

.passport-preview-wrap img {
  max-width: 96px;
  max-height: 72px;
}

.btn-send-inline {
  width: 100%;
  margin-top: 0.75rem;
}

.actions-note--block {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.actions-note--block a {
  color: var(--th-blue-light);
}

.wizard-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(11, 61, 107, 0.08);
}

.wizard-dock::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--th-gold), var(--th-blue-light));
  opacity: 0.85;
}

.wizard-dock-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom, 0));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
}

.wizard-dock-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.wizard-dock-meta strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-dock-meta span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.wizard-dock-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-ghost {
  background: transparent;
  color: var(--th-blue);
  border: 1px solid transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--th-blue-soft);
}

.btn-ghost:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.wizard-dock .btn.primary {
  min-width: auto;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.log-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--navy-deep);
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(11, 53, 92, 0.28);
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.log-fab:hover {
  background: var(--navy-mid);
  color: #fff;
  box-shadow: 0 12px 32px rgba(11, 53, 92, 0.34);
}

.log-fab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.log-fab.is-active {
  background: #061c33;
  box-shadow: 0 0 0 2px rgba(184, 146, 42, 0.55), 0 12px 32px rgba(11, 53, 92, 0.3);
}

.log-fab-icon {
  display: inline-flex;
  color: #f0d78a;
}

.log-fab-label {
  line-height: 1;
}

.btn-activity {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy-deep);
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-activity:hover {
  background: var(--navy-mid);
}

.btn-activity.is-active {
  box-shadow: inset 0 0 0 2px rgba(240, 215, 138, 0.65);
}

.btn-activity svg {
  color: #f0d78a;
  flex-shrink: 0;
}

.log-panel--drawer {
  position: fixed;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: min(42vh, 320px);
  width: 100%;
  max-width: none;
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 60;
  transform: translateY(100%);
  transition: transform 0.22s ease;
}

.log-panel--drawer.is-open {
  transform: translateY(0);
}

.log-panel--drawer[hidden] {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
}

.log-panel--drawer.is-open[hidden] {
  visibility: visible;
  pointer-events: auto;
}

.log-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.log-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.35rem;
  opacity: 0.9;
}

.log-output {
  min-height: 120px;
}

.log-panel-foot {
  padding: 0.45rem 0.85rem 0.55rem;
  border-top: 1px solid var(--border);
  background: var(--th-blue-soft);
}

.catalog-status {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.catalog-status.ready {
  color: var(--success);
}

.catalog-status.loading {
  color: #8a6d1a;
}

.catalog-status.offline {
  color: var(--danger);
}

@media (min-width: 900px) {
  .log-panel--drawer {
    left: auto;
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
    right: 1.25rem;
    width: min(400px, calc(100vw - 2.5rem));
    max-height: min(56vh, 460px);
    border-radius: 12px;
    transform: translateY(10px);
    opacity: 0;
  }

  .log-panel--drawer.is-open {
    transform: translateY(0);
    opacity: 1;
  }

  /* Keep floating FAB above the dock - never under it */
  .log-fab {
    right: 1.25rem;
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 70;
  }

  /* On wide screens the dock Activity is primary; FAB stays as backup */
  body:not(.is-outcome) .log-fab {
    display: none;
  }
}

@media (max-width: 899px) {
  .wizard-dock .btn-activity .btn-activity-text,
  .wizard-dock .btn-activity {
    padding: 0.5rem 0.7rem;
  }
}

body.is-outcome .wizard-chrome,
body.is-outcome .wizard-dock,
body.is-outcome .form-column {
  display: none !important;
}

body.is-outcome .site-header--service {
  border-bottom-color: rgba(201, 162, 39, 0.55);
}

.outcome-panel {
  width: 100%;
  padding: 1.25rem 0 2.75rem;
  animation: step-in 0.35s ease;
}

.outcome-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: left;
}

.outcome-shell--success {
  border-color: rgba(13, 107, 77, 0.28);
  background:
    linear-gradient(180deg, rgba(13, 107, 77, 0.05), transparent 42%),
    var(--surface);
}

.outcome-shell--error {
  border-color: rgba(180, 35, 24, 0.28);
  background:
    linear-gradient(180deg, rgba(180, 35, 24, 0.05), transparent 42%),
    var(--surface);
}

.outcome-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-blue);
  background: var(--th-blue-soft);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.outcome-kicker--ok {
  color: var(--success);
  background: rgba(13, 107, 77, 0.1);
}

.outcome-kicker--error {
  color: var(--danger);
  background: rgba(180, 35, 24, 0.08);
}

.pulse-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--th-blue-light);
  box-shadow: 0 0 0 0 rgba(26, 106, 168, 0.55);
  animation: pulse-dot 1.4s ease infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(26, 106, 168, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(26, 106, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 106, 168, 0); }
}

.outcome-icon {
  color: var(--success);
  margin: 0 0 0.85rem;
  width: 64px;
  height: 64px;
}

.outcome-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 0.45rem;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.outcome-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.15rem;
  line-height: 1.55;
}

.progress-status-line {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  background: var(--th-blue-soft);
  color: var(--th-blue);
  font-size: 0.88rem;
  font-weight: 650;
}

.outcome-meta {
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
}

.outcome-meta-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 34%) 1fr;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.outcome-meta-row:last-child {
  border-bottom: none;
}

.outcome-meta-row dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.outcome-meta-row dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.hotel-search {
  position: relative;
}

.hotel-search-input {
  width: 100%;
}

.hotel-search-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--mist, #c5d0db);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(14, 36, 56, 0.12);
}

.hotel-search-list li {
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--ink, #0f172a);
  cursor: pointer;
}

.hotel-search-list li:hover,
.hotel-search-list li.is-active {
  background: #eef5fb;
}

.hotel-search-list li .hotel-search-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--slate, #64748b);
}

.filing-hint-panel {
  width: 100%;
  margin: 0.15rem 0 0.35rem;
  padding: 0.75rem 0.9rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #9eb8d0;
  background: #eef5fb;
  box-sizing: border-box;
}

.filing-hint-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.filing-hint-bar-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d5f7a;
}

.filing-lang {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
}

.filing-lang select {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  min-width: 7.5rem;
  max-width: 11rem;
  padding: 0.35rem 1.7rem 0.35rem 0.55rem;
  border: 1px solid #9eb8d0;
  border-radius: 6px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%233d5f7a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  color: #0f2740;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.filing-lang select:focus {
  outline: 2px solid #2f6f9f;
  outline-offset: 1px;
}

.filing-window-hint {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1a3348;
}

.filing-window-hint strong {
  display: inline;
  font-weight: 700;
  color: #0b355c;
}

.filing-hint-panel[dir="rtl"] .filing-window-hint {
  text-align: right;
}

.filing-hint-panel[dir="rtl"] .filing-hint-bar {
  flex-direction: row-reverse;
}

.filing-hint-panel[dir="rtl"] .filing-lang select {
  background-position: left 0.45rem center;
  padding: 0.35rem 0.55rem 0.35rem 1.7rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.filing-window-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--surface-alt);
}

.filing-window-banner.is-early {
  border-color: #c4a35a;
  background: #fff8e8;
  color: #5c4510;
}

.filing-window-banner.is-open {
  border-color: #6f9e7a;
  background: #eef7f0;
  color: #1f4d2c;
}

.filing-window-banner.is-late {
  border-color: #c47a7a;
  background: #fdf0f0;
  color: #6b1f1f;
}

.filed-summary {
  margin: 0 0 1.15rem;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.filed-summary-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.filed-summary-lead {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.filed-summary-grid {
  margin: 0;
  display: grid;
  gap: 0;
}

.filed-summary-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 36%) 1fr;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}

.filed-summary-row dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filed-summary-row dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.status-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.status-pill--ok {
  color: var(--success);
  background: rgba(13, 107, 77, 0.12);
}

.outcome-note {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.28);
}

.outcome-note strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.outcome-note p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.progress-log-wrap {
  margin: 0 0 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f1c2a;
}

.progress-log-wrap--done {
  background: #132233;
}

.progress-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-link {
  border: none;
  background: transparent;
  color: #9ec8ef;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  padding: 0;
}

.btn-link:hover {
  color: #fff;
  text-decoration: underline;
}

.progress-log {
  margin: 0;
  padding: 0.75rem 0.85rem 0.9rem;
  min-height: 7.5rem;
  max-height: 14rem;
  overflow: auto;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #d7e6f5;
  white-space: pre-wrap;
  word-break: break-word;
}

.outcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-start;
}

.log-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.log-fab-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--th-gold);
}

body.is-submitting .log-fab,
body.is-outcome .log-fab {
  display: inline-flex;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  right: max(1.25rem, env(safe-area-inset-right));
  z-index: 70;
  box-shadow: 0 12px 32px rgba(10, 58, 98, 0.28);
}

.log-panel-sub {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.75;
}
/* ========== v17 premium layer (Cormorant + Source Sans 3) ========== */
html { color-scheme: light; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 100; padding: 0.55rem 0.9rem; background: var(--chalk); color: var(--navy); border-radius: 6px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); transition: top 0.15s ease; }
.skip-link:focus { top: 1rem; outline: 2px solid var(--gold); outline-offset: 2px; }
body.wizard-app { background: radial-gradient(900px 420px at 0% 0%, rgba(184, 146, 42, 0.07), transparent 50%), radial-gradient(800px 380px at 100% 0%, rgba(11, 53, 92, 0.08), transparent 48%), linear-gradient(180deg, #e7edf4 0%, #f4f7fa 180px, #f8fafc 100%); font-feature-settings: "kern" 1, "liga" 1; }
.site-header { background: linear-gradient(160deg, #061c33 0%, #0b355c 52%, #0e4470 100%); border-bottom: none; box-shadow: inset 0 -3px 0 var(--gold); }
.site-header::after { background: radial-gradient(ellipse 55% 90% at 92% -10%, rgba(184, 146, 42, 0.18), transparent 60%), linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.04) 100%); }
.site-header-inner { max-width: 720px; padding: 2rem 1.25rem 1.85rem; }
.site-mark { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; color: rgba(240, 215, 138, 0.92); }
.site-hero h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 600; letter-spacing: -0.025em; }
.site-lead { font-size: 1.02rem; line-height: 1.6; max-width: 32rem; color: rgba(244, 247, 251, 0.9); }
.site-aside { backdrop-filter: blur(8px); background: rgba(6, 28, 51, 0.35); border: 1px solid rgba(255, 255, 255, 0.12); border-left: 3px solid var(--gold); border-radius: 2px 10px 10px 2px; padding: 1rem 1.05rem; font-size: 0.8125rem; line-height: 1.5; }
.wizard-chrome { background: rgba(248, 250, 252, 0.86); border-bottom: 1px solid rgba(201, 214, 228, 0.9); }
.progress-fill { background: linear-gradient(90deg, #b8922a, #d4b45a); }
.progress-step-btn { font-size: 0.74rem; font-weight: 600; padding: 0.35rem 0.65rem; border-radius: 999px; }
.progress-step-btn.is-active { background: var(--navy); box-shadow: 0 4px 14px rgba(11, 53, 92, 0.22); }
.layout--wizard { max-width: 680px; padding: 1.15rem 1rem 1.5rem; }
.form-sheet { background: var(--chalk); border: 1px solid rgba(201, 214, 228, 0.95); border-radius: 14px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 48px rgba(14, 36, 56, 0.08); padding: 1.35rem 1.25rem 1.5rem; position: relative; }
.form-sheet::before { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--gold), transparent 70%); opacity: 0.9; }
.wizard-step.is-active { animation: sheet-in 0.28s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.section-desc { font-size: 0.92rem; line-height: 1.55; color: var(--slate); max-width: 42rem; }
.section-desc.note { background: rgba(184, 146, 42, 0.08); border-left: 3px solid var(--gold); color: var(--ink); }
.field-group-label { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--navy); letter-spacing: -0.015em; margin: 1.15rem 0 0.35rem; padding-top: 0.35rem; border-top: 1px solid #e8eef4; grid-column: 1 / -1; }
.field-group-label:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.grid { gap: 1.05rem 1.15rem; }
input, select, .tdac-combo-input { font-size: 0.95rem; font-weight: 500; min-height: 2.85rem; border-radius: 7px; }
.tdac-combo { min-height: 2.85rem; border-radius: 7px; box-shadow: 0 1px 0 rgba(14, 36, 56, 0.03); }
.tdac-combo:focus-within { border-color: var(--navy-mid); box-shadow: 0 0 0 3px rgba(11, 53, 92, 0.18); }
.upload-block { border-radius: 12px; padding: 1.15rem; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.upload-block:hover { border-color: #b7c7d8; box-shadow: 0 10px 28px rgba(14, 36, 56, 0.07); }
.upload-block h3 { font-size: 1.35rem; }
.dropzone { min-height: 112px; border-radius: 10px; border-style: dashed; border-width: 1.5px; font-weight: 500; }
.btn { border-radius: 8px; font-weight: 600; letter-spacing: -0.01em; transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, transform 0.1s ease; }
.btn.primary { background: linear-gradient(180deg, #124a78 0%, #0b355c 100%); min-height: 2.85rem; }
.btn.primary:not(:disabled):hover { background: linear-gradient(180deg, #16568a 0%, #0e4470 100%); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wizard-dock { background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); border-top: 1px solid var(--mist); box-shadow: 0 -12px 40px rgba(14, 36, 56, 0.06); }
.wizard-dock::before { background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.55; height: 1px; }
.wizard-dock-inner { max-width: 680px; }
.wizard-dock-meta strong { font-size: 1.2rem; }
.outcome-shell { border-radius: 16px; padding: 2rem 1.65rem 1.65rem; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 24px 60px rgba(14, 36, 56, 0.1); }
.outcome-title { font-size: clamp(1.85rem, 3.5vw, 2.35rem); text-wrap: balance; }
.outcome-kicker { font-family: var(--font); letter-spacing: 0.06em; }
.progress-log { font-variant-numeric: tabular-nums; }
.log-fab { font-weight: 700; letter-spacing: -0.01em; border-radius: 999px; padding: 0.55rem 0.95rem; background: var(--navy); color: #fff; border-color: var(--navy-deep); }
.log-fab:hover { background: var(--navy-mid); color: #fff; }
.log-fab-dot { background: #f0d78a; box-shadow: 0 0 0 3px rgba(240, 215, 138, 0.25); }
.log-panel--drawer { border: 1px solid rgba(201, 214, 228, 0.95); box-shadow: 0 20px 50px rgba(14, 36, 56, 0.18); overscroll-behavior: contain; }
.log-panel-head { background: linear-gradient(135deg, #061c33, #0b355c 60%, #124a78); }
.log-panel-head h2 { font-size: 1.25rem; }
.log-output { font-size: 0.8rem; line-height: 1.6; color: #334155; }
.checkbox-row { border-radius: 8px; background: #f5f8fb; border-color: #dde5ee; min-height: 2.75rem; align-items: center; }
.actions-note--block { font-size: 0.88rem; line-height: 1.55; color: var(--slate); padding: 0.85rem 1rem; background: #f5f8fb; border-radius: 8px; border: 1px solid #e2e8f0; margin: 0.85rem 0 1rem; }
.btn-send-inline { width: 100%; max-width: none; }
@media (max-width: 720px) { .form-sheet { padding: 1.1rem 0.9rem 1.25rem; border-radius: 12px; } .site-hero h1 { font-size: clamp(2.15rem, 9vw, 2.75rem); } }

/* ========== v20 responsive system - phone -> desktop -> wide ========== */
:root {
  --page-pad-x: clamp(0.85rem, 2.5vw, 1.75rem);
  --content-max: 44rem;
  --content-wide: 56rem;
  --dock-h: 4.75rem;
  --touch-min: 2.75rem;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.wizard-app {
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 1.25rem);
  overflow-x: hidden;
}

body.groups-only {
  padding-bottom: 0;
}

body.is-outcome {
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.site-header-inner,
.wizard-chrome-inner,
.layout--wizard,
.wizard-dock-inner,
.outcome-panel {
  width: min(100%, var(--content-max));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad-x);
  padding-right: var(--page-pad-x);
}

.layout--wizard {
  max-width: var(--content-max);
  padding-top: clamp(0.85rem, 2vw, 1.35rem);
  padding-bottom: 0.5rem;
}

.site-header-inner {
  max-width: var(--content-max);
  box-sizing: border-box;
}

.wizard-chrome-inner {
  max-width: var(--content-max);
  box-sizing: border-box;
}

.wizard-dock-inner {
  max-width: var(--content-max);
  box-sizing: border-box;
}

/* -- Large / ultra-wide desktops -- */
@media (min-width: 1100px) {
  :root {
    --content-max: 48rem;
    --page-pad-x: 2rem;
  }

  .site-header-inner {
    max-width: var(--content-wide);
    grid-template-columns: minmax(0, 1.55fr) minmax(14rem, 0.7fr);
    gap: 2.5rem;
    padding-top: 2.35rem;
    padding-bottom: 2.1rem;
  }

  .site-hero h1 {
    font-size: clamp(3rem, 3.2vw, 3.75rem);
  }

  .site-lead {
    font-size: 1.08rem;
    max-width: 36rem;
  }

  .form-sheet {
    padding: 1.75rem 1.85rem 1.85rem;
    border-radius: 16px;
  }

  .layout--wizard,
  .wizard-chrome-inner,
  .wizard-dock-inner {
    max-width: var(--content-max);
  }
}

@media (min-width: 1400px) {
  :root {
    --content-max: 52rem;
    --content-wide: 64rem;
  }

  body.wizard-app {
    background:
      radial-gradient(1100px 520px at 8% -8%, rgba(184, 146, 42, 0.09), transparent 55%),
      radial-gradient(900px 480px at 92% 0%, rgba(11, 53, 92, 0.1), transparent 50%),
      linear-gradient(180deg, #e4ebf2 0%, #f4f7fa 220px, #f8fafc 100%);
  }
}

/* -- Tablet -- */
@media (max-width: 900px) {
  .site-header-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.1rem;
    padding-top: 1.35rem;
    padding-bottom: 1.25rem;
  }

  .site-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
  }

  .site-aside p {
    margin: 0;
  }

  .site-aside-soon {
    grid-column: 1 / -1;
    margin-top: 0.35rem !important;
  }

  .progress-step-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.55rem;
  }
}

/* -- Phones -- */
@media (max-width: 640px) {
  :root {
    --dock-h: 7.25rem;
    --page-pad-x: 0.85rem;
  }

  body {
    font-size: 15px;
  }

  .site-mark {
    font-size: 0.75rem;
  }

  .site-hero h1 {
    font-size: clamp(2rem, 9.5vw, 2.55rem);
    line-height: 1.05;
  }

  .site-lead {
    font-size: 0.92rem;
    margin-top: 0.65rem;
  }

  .site-aside {
    grid-template-columns: 1fr;
    font-size: 0.78rem;
    padding: 0.8rem 0.85rem;
  }

  .form-sheet {
    padding: 1rem 0.8rem 1.15rem;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(14, 36, 56, 0.07);
  }

  .form-sheet::before {
    left: 0.8rem;
    right: 0.8rem;
  }

  .grid-2,
  .grid-3,
  .upload-grid {
    grid-template-columns: 1fr !important;
  }

  .dob-row {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 0.4rem;
  }

  .field-group-label {
    font-size: 1.1rem;
  }

  .section-desc,
  .section-desc--lead {
    font-size: 0.88rem;
  }

  .upload-block h3 {
    font-size: 1.2rem;
  }

  .dropzone {
    min-height: 96px;
    font-size: 0.85rem;
  }

  input,
  select,
  .tdac-combo-input,
  .tdac-combo,
  .btn.primary,
  .btn.secondary,
  .btn-activity {
    min-height: var(--touch-min);
  }

  .btn-send-inline {
    min-height: 3rem;
    font-size: 1rem;
  }

  /* Dock: two rows on phone - nav meta + actions full width */
  .wizard-dock-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "back meta"
      "actions actions";
    gap: 0.45rem 0.55rem;
    padding-top: 0.55rem;
    padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
  }

  #btn-wizard-back {
    grid-area: back;
  }

  .wizard-dock-meta {
    grid-area: meta;
  }

  .wizard-dock-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.4rem;
    width: 100%;
  }

  .wizard-dock-actions .btn-activity {
    justify-self: start;
  }

  .wizard-dock-actions #btn-wizard-skip {
    justify-self: center;
    font-size: 0.8rem;
    padding: 0.5rem 0.55rem;
  }

  .wizard-dock-actions #btn-wizard-next {
    justify-self: end;
    min-width: 6.5rem;
  }

  .wizard-dock-meta strong {
    font-size: 1rem;
  }

  .wizard-dock-meta span {
    font-size: 0.68rem;
  }

  .progress-steps {
    gap: 0.15rem;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }

  .progress-step-btn {
    font-size: 0.65rem;
    padding: 0.28rem 0.45rem;
  }

  .log-fab {
    bottom: calc(var(--dock-h) + 0.65rem + env(safe-area-inset-bottom, 0px));
    right: max(0.75rem, env(safe-area-inset-right));
    padding: 0.7rem 0.95rem;
    font-size: 0.8rem;
  }

  body:not(.is-outcome) .log-fab {
    display: none;
  }

  .outcome-shell {
    padding: 1.35rem 1rem 1.2rem;
    border-radius: 14px;
  }

  .outcome-title {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
  }

  .outcome-meta-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .outcome-actions {
    flex-direction: column;
  }

  .outcome-actions .btn {
    width: 100%;
  }

  .progress-log {
    max-height: 11rem;
    font-size: 0.72rem;
  }

  .log-panel--drawer {
    max-height: min(52vh, 360px);
    border-radius: 14px 14px 0 0;
  }
}

/* -- Very small phones -- */
@media (max-width: 380px) {
  .wizard-dock-actions {
    grid-template-columns: 1fr 1fr;
  }

  .wizard-dock-actions .btn-activity {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .wizard-dock-actions #btn-wizard-skip {
    justify-self: stretch;
  }

  .wizard-dock-actions #btn-wizard-next {
    justify-self: stretch;
  }

  .site-aside-soon {
    font-size: 0.72rem;
  }
}

/* -- Landscape phones -- */
@media (max-height: 480px) and (orientation: landscape) {
  .site-header-inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .site-aside {
    display: none;
  }

  .site-hero h1 {
    font-size: 1.65rem;
  }

  .site-lead {
    display: none;
  }

  :root {
    --dock-h: 3.75rem;
  }

  .wizard-dock-inner {
    grid-template-areas: "back meta actions";
    grid-template-columns: auto 1fr auto;
  }

  .wizard-dock-actions {
    display: flex;
    width: auto;
  }
}

/* Touch-friendly focus / tap */
@media (pointer: coarse) {
  .progress-step-btn {
    min-height: 2.25rem;
  }

  .tdac-combo-toggle {
    min-width: 3rem;
  }

  .checkbox-row {
    min-height: var(--touch-min);
    padding: 0.65rem 0.75rem;
  }
}

/* ========== v21 premium readable type + inviting UX ========== */
:root {
  --font: "IBM Plex Sans", "Sarabun", sans-serif;
  --font-display: "Source Serif 4", "Georgia", "Times New Roman", serif;
}

.site-mark {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(240, 215, 138, 0.95);
}

.site-hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}

.site-aside {
  font-size: 0.875rem;
  line-height: 1.55;
}

.section-desc,
.section-desc--lead,
.section-desc--inline {
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.65;
  color: var(--slate);
  max-width: 40rem;
}

.section-desc.note {
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 0.85rem 1rem;
  border-radius: 0 10px 10px 0;
}

.field-group-label {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 1.35rem 0 0.55rem;
}

.upload-block h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.upload-block-hint {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--slate);
}

.form-sheet {
  padding: clamp(1.15rem, 3vw, 1.85rem);
}

.grid {
  gap: 1.15rem 1.25rem;
}

.checkbox-row .field-label-inline {
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
}

.wizard-dock-meta strong {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.wizard-dock-meta span {
  font-size: 0.78rem;
  font-weight: 500;
}

.btn {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0;
}

.btn.primary {
  font-size: 0.98rem;
}

.outcome-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.outcome-lead,
.outcome-note p,
.actions-note--block {
  font-size: 0.98rem;
  line-height: 1.65;
}

.progress-status-line {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.log-panel-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
}

.tdac-combo-list li {
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  line-height: 1.4;
}

.tdac-combo-status {
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Soft invite hover on fields - calm, not flashy */
input:hover,
select:hover,
.tdac-combo:hover {
  border-color: #a8bacb;
  background: #fcfdff;
}

input:focus-visible,
select:focus-visible {
  background: #fff;
}

.status-line.ok {
  font-weight: 600;
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .field label > span.field-label,
  .field > span.field-label {
    font-size: 0.9rem;
  }

  input,
  select,
  .tdac-combo-input {
    font-size: 1.02rem;
  }
}

/* Navbar responsive polish (v22) */
@media (max-width: 900px) {
  .wizard-chrome-inner {
    padding: 0.7rem var(--page-pad-x, 1rem) 0.8rem;
  }

  .progress-steps {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none !important;
  }

  .progress-step-btn {
    flex: 0 0 auto;
    min-width: 5.5rem;
    flex-direction: row;
    gap: 0.4rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
  }

  .progress-step-label {
    font-size: 0.72rem;
    white-space: nowrap;
    display: inline;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .wizard-chrome-label {
    font-size: 0.85rem;
  }

  .btn-chrome-activity span {
    display: none;
  }

  .btn-chrome-activity {
    padding: 0.5rem 0.65rem;
    min-width: 2.5rem;
    justify-content: center;
  }

  .progress-step-btn {
    min-width: auto;
    padding: 0.4rem 0.55rem;
  }

  .progress-step-label {
    display: none;
  }
}

@media (min-width: 1100px) {
  .wizard-chrome-inner {
    max-width: 48rem;
    padding: 1rem 1.5rem 1.1rem;
  }

  .progress-step-label {
    font-size: 0.74rem;
  }

  .progress-step-btn {
    padding: 0.65rem 0.45rem 0.6rem;
  }
}

.mode-switch {
  display: flex;
  gap: 0.5rem;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0;
}

.mode-tab {
  appearance: none;
  border: 1px solid var(--mist);
  background: var(--chalk);
  color: var(--navy);
  font: 600 0.95rem/1 var(--font);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.mode-tab.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.group-workspace {
  max-width: 64rem;
  margin-inline: auto;
  padding-block: 1.25rem 4rem;
  padding-inline: 1.25rem;
}

.group-head h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0.2rem 0 0.4rem;
  color: var(--navy-deep);
}

.group-drop {
  display: block;
  margin-top: 1rem;
}

.group-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.group-stat {
  background: var(--chalk);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-align: start;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
}

.group-stat.is-on {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.group-stat.is-ready strong {
  color: var(--teal);
}

.group-stat.is-blocked strong {
  color: var(--danger);
}

.group-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--navy);
}

.group-stat span {
  color: var(--slate);
  font-size: 0.85rem;
}

.group-banner {
  background: #f8f1dc;
  border: 1px solid var(--gold);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.group-banner--open {
  background: #e5f4ee;
  border-color: #b7e0d2;
}

.group-banner--closed {
  background: #fde8e6;
  border-color: #f3c7c2;
  font-weight: 600;
}

.group-banner--pending {
  background: #eef4fb;
  border-color: #c5d9ef;
}

.group-template-row {
  margin: 0 0 0.85rem;
}

.group-map, .group-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--chalk);
  font-size: 0.92rem;
}

.group-map th, .group-map td, .group-table th, .group-table td {
  text-align: start;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--mist);
  vertical-align: top;
}

.group-map th, .group-table th {
  color: var(--slate);
  font-weight: 600;
}

.group-pill {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.group-pill.in_file, .group-pill.derived, .group-pill.translated, .group-pill.lookup {
  background: #e5f4ee;
  color: var(--teal);
}

.group-pill.partial, .group-pill.assumed, .group-pill.optional {
  background: #f8e7c3;
  color: #6f4e12;
}

.group-pill.passport {
  background: #ede7f6;
  color: #3b2f63;
}

.group-pill.missing {
  background: #fde8e6;
  color: var(--danger);
}

.group-gaps {
  margin: 0.5rem 0 1.25rem;
  padding-inline-start: 1.1rem;
}

.group-table-wrap {
  max-height: 28rem;
  overflow: auto;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
}

.group-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 1rem;
}

.group-filter {
  appearance: none;
  border: 1px solid var(--mist);
  background: var(--chalk);
  color: var(--navy);
  font: 600 0.92rem/1.2 var(--font);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.group-filter.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.group-missing-box {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.group-missing-box p {
  margin: 0 0 0.45rem;
  font-weight: 700;
  color: #7a5b10;
}

.verdict-block h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.6rem;
}

.verdict-block h3 span {
  font-variant-numeric: tabular-nums;
  color: var(--danger);
}

.verdict-block--ready h3 span {
  color: var(--teal);
}

.verdict-empty {
  margin: 0 0 1rem;
  color: var(--slate);
}

.person-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid #f3c7c2;
  border-inline-start: 4px solid var(--danger);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.5rem;
}

.person-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.person-card-main strong {
  color: var(--navy-deep);
  font-size: 1.05rem;
}

.person-card-main span,
.person-meta {
  color: var(--slate);
  font-size: 0.82rem;
}

.person-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.miss-chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.miss-chip.person {
  background: #fde8e6;
  color: var(--danger);
}

.miss-chip.group {
  background: #fff;
  color: #7a5b10;
  border: 1px solid var(--gold);
}

.group-fold {
  margin: 0 0 1rem;
}

.group-fold summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.name-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.35rem 0.75rem;
  max-height: 22rem;
  overflow: auto;
}

.name-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--chalk);
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
}

.name-list--ready li {
  border-color: #b7e0d2;
}

.group-fold--map {
  margin-top: 1.5rem;
}

.group-roster {
  margin: 1.5rem 0;
}

.group-roster h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 0.35rem;
}

.group-roster-note {
  margin: 0 0 0.75rem;
  color: var(--slate);
  font-size: 0.9rem;
}

.group-roster-wrap {
  max-height: 32rem;
  overflow: auto;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: #fff;
}

.group-roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.group-roster-table th,
.group-roster-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--mist);
  text-align: start;
  vertical-align: top;
  white-space: nowrap;
}

.group-roster-table th {
  position: sticky;
  top: 0;
  background: var(--chalk);
  z-index: 1;
  font-weight: 600;
  color: var(--slate);
}

.group-roster-table .bench-col {
  white-space: normal;
  min-width: 11rem;
  background: #f4faf7;
  font-size: 0.78rem;
}

.group-roster-table .bench-col strong {
  display: block;
  color: var(--navy);
}

.group-roster-table .bench-col span {
  display: block;
  color: var(--slate);
  word-break: break-all;
}

.group-submit {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--chalk);
}

.group-submit h3 {
  margin: 0 0 0.5rem;
}

.group-submit p {
  margin: 0 0 0.75rem;
  color: var(--slate);
  font-size: 0.92rem;
}

.group-check,
.group-limit {
  display: block;
  margin: 0.35rem 0;
  font-size: 0.9rem;
}

.group-limit input {
  width: 4.5rem;
  margin-inline: 0.35rem;
}

.group-submit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.group-submit-actions .btn-primary,
.group-submit-actions .btn-secondary {
  appearance: none;
  border-radius: 999px;
  font: 600 0.92rem/1 var(--font);
  padding: 0.65rem 1rem;
  cursor: pointer;
}

.group-submit-actions .btn-primary {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}

.group-submit-actions .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.group-submit-actions .btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--mist);
}

.group-batch-progress {
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 8px;
  font-size: 0.9rem;
}

body.group-batch-open {
  overflow: hidden;
}

.group-batch-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.group-batch-modal[hidden] {
  display: none !important;
}

.group-batch-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 53, 92, 0.55);
  backdrop-filter: blur(3px);
}

.group-batch-modal-card {
  position: relative;
  width: min(36rem, 100%);
  max-height: min(90vh, 44rem);
  overflow: auto;
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 60px rgba(11, 53, 92, 0.25);
  padding: 1.25rem 1.35rem 1rem;
}

.group-batch-modal-head h2 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-display);
  color: var(--navy-deep);
}

.group-batch-modal-lead {
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
}

.group-batch-window {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.group-batch-window.is-closed {
  background: #fde8e6;
  color: var(--danger);
  border: 1px solid #f3c7c2;
}

.group-batch-window.is-open {
  background: #e5f4ee;
  color: var(--teal);
  border: 1px solid #b7e0d2;
}

.group-batch-window.is-dry {
  background: var(--gold-soft);
  color: #7a5b10;
  border: 1px solid var(--gold);
}

.group-batch-meter {
  height: 0.55rem;
  background: var(--mist);
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0 0.65rem;
}

.group-batch-meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), #0b355c);
  transition: width 0.35s ease;
}

.group-batch-statline {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  text-align: center;
}

.group-batch-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.group-batch-metrics div {
  background: var(--chalk);
  border: 1px solid var(--mist);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.group-batch-metrics span {
  display: block;
  color: var(--slate);
  font-size: 0.78rem;
}

.group-batch-metrics strong {
  font-size: 1.15rem;
  color: var(--navy-deep);
}

.group-batch-current {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: #f4faf7;
  border: 1px solid #b7e0d2;
  border-radius: 8px;
  font-size: 0.92rem;
}

.group-batch-summary {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--mist);
}

.group-batch-summary h3 {
  margin: 0 0 0.35rem;
}

.group-batch-modal-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .person-card {
    flex-direction: column;
    align-items: stretch;
  }
  .person-chips {
    justify-content: flex-start;
  }
}

body.mode-group .wizard-chrome,
body.mode-group .layout--wizard,
body.mode-group .wizard-dock,
body.mode-group .log-panel {
  display: none;
}

body.groups-only .mode-switch,
body.groups-only .wizard-chrome,
body.groups-only .layout--wizard,
body.groups-only .wizard-dock,
body.groups-only .log-panel,
body.groups-only .log-panel--drawer,
body.groups-only .log-panel--drawer[hidden],
body.groups-only .log-fab,
body.groups-only .site-header {
  display: none !important;
}

body.groups-only {
  background: var(--paper, #f4f7fb);
}

.group-head-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.lang-flag-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  border-radius: 3px;
}

.lang-flag-btn:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 3px;
}

.lang-flag-btn .flag {
  width: 44px;
  height: 32px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(11, 53, 92, 0.2);
}

html[lang="he"] .flag-us,
html[lang="en"] .flag-il {
  display: none;
}

.group-workspace {
  max-width: 76rem;
}

.group-trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.group-trip-grid div {
  background: #fff;
  border: 1px solid var(--mist, #c5d0dc);
  border-radius: 0.6rem;
  padding: 0.7rem 0.85rem;
}

.group-trip-grid dt {
  font-size: 0.8rem;
  color: #4a6278;
  margin: 0 0 0.2rem;
}

.group-trip-grid dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy-deep, #0b355c);
}

.group-roster-table th {
  position: sticky;
  top: 0;
  background: #f7fafc;
}

html[dir="ltr"] .group-workspace,
html[dir="ltr"] .group-batch-modal-card {
  text-align: left;
}

html[dir="rtl"] .group-workspace,
html[dir="rtl"] .group-batch-modal-card {
  text-align: right;
}

@media (max-width: 720px) {
  .group-head-bar {
    flex-direction: column;
  }
}

body.groups-only {
  background: #0c3a66;
}

body.groups-only .group-workspace {
  max-width: none;
  margin: 0;
  padding: 0;
}

.dash {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #eef3f8;
  color: #0b355c;
}

.dash-side {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 16px;
  min-height: 52px;
}

.dash-brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0b355c;
}

.dash-brand-sub {
  margin: 0;
  color: #b8922a;
  font-size: 0.85rem;
}

.dash-nav {
  margin: 0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 650;
}

.dash-nav.is-on {
  background: #0b355c;
  color: #fff;
}

.dash-side .lang-flag-btn {
  margin-inline-start: auto;
}

.dash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: 12px 16px 16px;
  gap: 10px;
  min-height: 0;
}

.dash-sheet {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(11, 53, 92, 0.06);
  padding: 16px 16px 10px;
  position: relative;
}

.dash-sheet::before {
  content: "";
  position: absolute;
  inset-inline: 16px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #b8922a, transparent 70%);
}

.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dash-head-copy {
  min-width: 0;
}

.dash-head h2 {
  margin: 0 0 4px;
  font-size: 1.28rem;
  font-weight: 700;
  color: #0b355c;
}

.dash-head .btn-secondary {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #0b355c;
  font-weight: 650;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.dash-head .section-desc {
  max-width: none;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.dash-upload {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
  gap: 12px;
  align-items: stretch;
  margin: 14px 0 6px;
}

.dash-status-card,
.dash .dash-drop {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: none;
  height: 100%;
  margin: 0;
}

.dash-status-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dash-kicker {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
}

.dash-status-card .status-line {
  margin: 4px 0 10px;
  font-size: 1rem;
  font-weight: 650;
  color: #0b355c;
}

.dash-meter {
  height: 8px;
  background: #e8eef5;
  border-radius: 99px;
  overflow: hidden;
}

#group-live-meter {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0b355c, #c4a35a);
}

.dash-count {
  margin: 8px 0 0;
  font-weight: 650;
  color: #0b355c;
}

.dash-count:empty {
  display: none;
}

.dash .dash-drop {
  min-height: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 14px;
  text-align: start;
  padding: 14px 16px;
  cursor: pointer;
  border-style: dashed;
  border-color: #c5d4e4;
}

.xlsx-mark {
  width: 34px;
  height: 40px;
  flex: 0 0 auto;
}

.dash .dash-drop #group-file-label {
  flex: 1 1 12rem;
  margin: 0;
}

.dash-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #0b355c;
  border-radius: 8px;
  color: #0b355c;
  font-weight: 650;
}

.dash-drop:hover .dash-pick,
.dash-drop:focus-within .dash-pick {
  background: #0b355c;
  color: #fff;
}

.dash-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dash-await {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
}

#group-report:not([hidden]) + .dash-await {
  display: none;
}

.dash-await-cols {
  display: grid;
  grid-template-columns: 0.6fr 1.3fr 1fr 1fr 1.3fr 1.1fr;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
}

.dash-await-hint {
  margin: 14px 16px 0;
  max-width: 40rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.dash-await::after {
  content: "";
  flex: 1;
  margin: 12px 14px 14px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 34px,
    #eef3f8 34px 35px
  );
}

.dash .group-stats {
  margin: 0;
}

.dash .group-banner {
  margin-bottom: 0;
}

.dash .group-filters {
  margin: 0;
}

.dash .group-roster-wrap {
  max-height: none;
}

#group-report[hidden] {
  display: none;
}

#group-report:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

#group-report .group-trip { order: 0; }
#group-report .group-stats,
#group-report .group-filters { order: 1; }
#group-report .group-submit { order: 2; }
#group-report .group-banner { order: 3; }
#group-report .group-verdict { order: 4; }
#group-report .group-roster { order: 5; }
#group-report .group-fold--map { order: 6; }

body.is-filing .vb-shell {
  background:
    radial-gradient(860px 300px at 50% -80px, rgba(29, 78, 216, 0.28), transparent 70%),
    #b4cfea;
}

body.is-filing .vb-nav {
  background: rgba(180, 207, 234, 0.94);
  border-bottom-color: rgba(8, 40, 72, 0.12);
}

body.is-filing .group-workspace {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  flex: 1;
  padding: 36px 0 56px;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-weight: 600;
  color: #082848;
  text-align: center;
}

body.is-filing .filing-hub,
body.is-filing .filing-collect,
body.is-filing .filing-excel {
  width: 100%;
  text-align: start;
}

body.is-filing .filing-hub-head,
body.is-filing .filing-collect-head {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  margin-bottom: 18px;
}

body.is-filing .filing-collect-head .vb-ghost:first-of-type {
  justify-self: start;
}

body.is-filing .filing-hub-head h1,
body.is-filing .filing-collect-head h2 {
  margin: 0;
  color: #0c3a66;
  font: 700 clamp(1.35rem, 2.4vw, 1.8rem)/1.2 "IBM Plex Sans", "Sarabun", sans-serif;
}

body.is-filing .filing-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.is-filing .filing-path-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 22px 20px;
  border: 1px solid rgba(8, 40, 72, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(8, 40, 72, 0.1);
  color: #082848;
  cursor: pointer;
  text-align: start;
  font: inherit;
}

body.is-filing .filing-path-card strong {
  font: 700 1.2rem/1.25 "IBM Plex Sans", "Sarabun", sans-serif;
}

body.is-filing .filing-path-card span:last-child {
  color: #23486f;
  font: 500 0.98rem/1.45 "IBM Plex Sans", "Sarabun", sans-serif;
}

body.is-filing .filing-path-kicker {
  color: #0b6b42;
  font: 700 0.82rem/1.2 "IBM Plex Sans", "Sarabun", sans-serif;
}

body.is-filing .filing-path-card:hover,
body.is-filing .filing-path-card:focus-visible {
  border-color: rgba(11, 107, 66, 0.35);
  box-shadow: 0 16px 38px rgba(8, 40, 72, 0.14);
}

body.is-filing .filing-collect {
  padding: 22px 20px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(8, 40, 72, 0.1);
  box-shadow: 0 18px 44px rgba(8, 40, 72, 0.12);
}

body.is-filing .filing-collect .cmp-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

body.is-filing .filing-collect .cmp-create[hidden],
body.is-filing .filing-collect .cmp-list[hidden],
body.is-filing .filing-collect .cmp-detail[hidden] {
  display: none !important;
}

body.is-filing .filing-collect .cmp-stage {
  width: min(640px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

body.is-filing .filing-collect .cmp-toolbar {
  width: 100%;
  justify-content: center;
}

body.is-filing .filing-collect .cmp-new-btn {
  width: min(320px, 100%);
}

body.is-filing .filing-collect .cmp-history-title {
  margin: 0;
  width: 100%;
}

body.is-filing .filing-collect .cmp-cards {
  width: 100%;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.is-filing .filing-collect .cmp-card {
  text-align: start;
  padding: 16px 18px;
  border-radius: 16px;
}

body.is-filing .filing-collect.is-cmp-create #campaign-create,
body.is-filing .filing-collect.is-cmp-detail .cmp-detail {
  width: min(720px, 100%);
  margin-inline: auto;
}

body.is-filing .filing-collect .cmp-lead {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

body.is-filing .filing-collect .cmp-row {
  width: min(720px, 100%);
  margin-inline: auto;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(8, 40, 72, 0.1);
  background: #fff;
  box-shadow: 0 8px 22px rgba(8, 40, 72, 0.06);
}

body.is-filing .filing-collect .cmp-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

body.is-filing .filing-collect .cmp-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #128c7e;
  color: #fff;
  font: 650 0.95rem/1 "IBM Plex Sans", "Sarabun", sans-serif;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(18, 140, 126, 0.28);
}

body.is-filing .filing-collect .cmp-wa:hover {
  background: #0e756a;
}

body.is-filing .filing-collect .cmp-wa-ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

body.is-filing .filing-collect .cmp-copy {
  min-height: 44px;
}

body.is-filing .filing-collect .cmp-row-phone {
  direction: ltr;
  unicode-bidi: isolate;
}

body.is-filing .filing-collect .cmp-notify-bar {
  width: min(720px, 100%);
  margin: 16px auto 0;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

body.is-filing .filing-collect .cmp-notify-all {
  width: min(420px, 100%);
}

body.is-filing .filing-collect .cmp-row-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

body.is-filing .filing-collect .cmp-notice {
  font: 650 0.78rem/1.2 "IBM Plex Sans", "Sarabun", sans-serif;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 40, 72, 0.08);
  color: #23486f;
}

body.is-filing .filing-collect .cmp-notice.is-sent {
  background: rgba(11, 107, 66, 0.14);
  color: #0b6b42;
}

body.is-filing .filing-collect .cmp-notice.is-failed {
  background: rgba(180, 40, 40, 0.12);
  color: #8b1a1a;
}

body.is-filing .filing-collect {
  position: relative;
}

body.is-filing .filing-collect.is-cmp-busy {
  min-height: 460px;
}

body.is-filing .filing-collect.is-cmp-busy .cmp-list,
body.is-filing .filing-collect.is-cmp-busy .cmp-detail,
body.is-filing .filing-collect.is-cmp-busy #campaign-create {
  pointer-events: none;
  user-select: none;
}

body.is-filing .filing-collect .cmp-busy {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(248, 251, 255, 0.82);
  backdrop-filter: blur(6px);
}

body.is-filing .filing-collect .cmp-busy[hidden] {
  display: none !important;
}

body.is-filing .filing-collect .cmp-busy-panel {
  width: min(420px, 100%);
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid rgba(8, 40, 72, 0.12);
  background: #fff;
  box-shadow: 0 18px 48px rgba(8, 40, 72, 0.14);
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
}

body.is-filing .filing-collect .cmp-busy-spin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(8, 40, 72, 0.12);
  border-top-color: #0c5a8a;
  animation: cmp-busy-spin 0.85s linear infinite;
}

@keyframes cmp-busy-spin {
  to {
    transform: rotate(360deg);
  }
}

body.is-filing .filing-collect .cmp-busy-text {
  margin: 0;
  font: 650 1.05rem/1.35 "IBM Plex Sans", "Rubik", sans-serif;
  color: #0a2848;
}

body.is-filing .filing-collect .cmp-busy-hint {
  margin: 0;
  font: 500 0.88rem/1.45 "IBM Plex Sans", "Rubik", sans-serif;
  color: rgba(8, 40, 72, 0.62);
}

body.is-filing .filing-collect .cmp-busy-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(8, 40, 72, 0.1);
  overflow: hidden;
}

body.is-filing .filing-collect .cmp-busy-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0c5a8a, #1a8fd1);
  transition: width 0.35s ease;
}

body.is-filing .filing-collect .cmp-status {
  width: min(720px, 100%);
  margin: 0 auto 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font: 550 0.92rem/1.4 "IBM Plex Sans", "Rubik", sans-serif;
  text-align: center;
}

body.is-filing .filing-collect .cmp-status.is-info {
  background: rgba(12, 90, 138, 0.1);
  color: #0a3d5c;
}

body.is-filing .filing-collect .cmp-status.is-ok {
  background: rgba(11, 107, 66, 0.12);
  color: #0b6b42;
}

body.is-filing .filing-collect .cmp-status.is-warn {
  background: rgba(180, 120, 20, 0.12);
  color: #7a4e00;
}

body.is-filing .filing-collect .cmp-card.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

body.is-filing .filing-collect .cmp-card.is-loading::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 10px auto 0;
  border-radius: 50%;
  border: 2px solid rgba(8, 40, 72, 0.15);
  border-top-color: #0c5a8a;
  animation: cmp-busy-spin 0.85s linear infinite;
}

body .cmp-confirm {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 24px;
}

body .cmp-confirm[hidden] {
  display: none !important;
}

body .cmp-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 42, 0.48);
  backdrop-filter: blur(4px);
}

body .cmp-confirm-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 26px 24px 20px;
  border-radius: 18px;
  border: 1px solid rgba(8, 40, 72, 0.12);
  background: #fff;
  box-shadow: 0 22px 56px rgba(8, 24, 42, 0.28);
  text-align: center;
  display: grid;
  gap: 12px;
}

body .cmp-confirm-card h3 {
  margin: 0;
  font: 650 1.15rem/1.3 "IBM Plex Sans", "Rubik", sans-serif;
  color: #0a2848;
}

body .cmp-confirm-card p {
  margin: 0;
  font: 500 0.95rem/1.5 "IBM Plex Sans", "Rubik", sans-serif;
  color: rgba(8, 40, 72, 0.78);
}

body .cmp-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}

body .cmp-confirm-card .vb-ghost,
body .cmp-confirm-card .vb-submit {
  flex: 1 1 140px;
  min-height: 46px;
  padding: 10px 16px;
  white-space: normal;
}

body .cmp-confirm-card .vb-ghost,
body .cmp-confirm-card .vb-ghost:hover {
  background: #fff;
  color: #0c3a66;
  border: 1px solid rgba(12, 58, 102, 0.28);
}

body .cmp-confirm-card .vb-submit,
body .cmp-confirm-card .vb-submit:hover {
  background: #0c3a66;
  color: #fff;
  border: 0;
}

body .cmp-confirm-ok.is-danger,
body .cmp-confirm-card .vb-submit.is-danger,
body .cmp-confirm-card .vb-submit.is-danger:hover {
  background: #8b1a1a;
  border-color: #8b1a1a;
  color: #fff;
}

body .cmp-confirm-card .vb-submit.is-danger:hover {
  background: #6e1212;
}

body.is-filing .filing-collect .cmp-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: min(720px, 100%);
  margin: 0 auto 8px;
  text-align: start;
}

body.is-filing .filing-collect .cmp-hero-main {
  display: grid;
  gap: 8px;
  justify-items: start;
}

body.is-filing .filing-collect .cmp-hero h2 {
  margin: 0;
  color: #0c3a66;
  font: 700 1.55rem/1.2 "IBM Plex Sans", "Sarabun", sans-serif;
}

body.is-filing .filing-collect .cmp-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font: 700 0.82rem/1 "IBM Plex Sans", "Sarabun", sans-serif;
}

body.is-filing .filing-collect .cmp-badge.is-open {
  background: rgba(11, 107, 66, 0.14);
  color: #0b6b42;
}

body.is-filing .filing-collect .cmp-badge.is-ready {
  background: rgba(12, 58, 102, 0.12);
  color: #0c3a66;
}

body.is-filing .filing-collect .cmp-badge.is-closed {
  background: rgba(8, 40, 72, 0.08);
  color: #23486f;
}

body.is-filing .filing-collect .cmp-panel {
  width: min(720px, 100%);
  margin: 14px auto 0;
  padding: 16px 16px 6px;
  border-radius: 16px;
  border: 1px solid rgba(8, 40, 72, 0.1);
  background: #f6f9fc;
  text-align: start;
}

body.is-filing .filing-collect .cmp-panel h3,
body.is-filing .filing-collect .cmp-section-title h3,
body.is-filing .filing-collect .cmp-dock-card h3 {
  margin: 0;
  color: #0c3a66;
  font: 700 1.02rem/1.3 "IBM Plex Sans", "Sarabun", sans-serif;
}

body.is-filing .filing-collect .cmp-section-title {
  width: min(720px, 100%);
  margin: 8px auto 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.is-filing .filing-collect .cmp-section-title span {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f0f7;
  color: #0c3a66;
  font: 700 0.85rem/1 "IBM Plex Sans", "Sarabun", sans-serif;
}

body.is-filing .filing-collect .cmp-dock {
  width: min(720px, 100%);
  margin: 16px auto 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.85fr);
  gap: 12px;
  text-align: start;
}

body.is-filing .filing-collect .cmp-dock-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(12, 58, 102, 0.16);
  background: #fff;
}

body.is-filing .filing-collect .cmp-dock-card.is-quiet {
  background: #f6f9fc;
  border-color: rgba(8, 40, 72, 0.1);
}

body.is-filing .filing-collect .cmp-dock-card p {
  margin: 0;
  color: #4a5d70;
  font: 500 0.9rem/1.45 "IBM Plex Sans", "Sarabun", sans-serif;
}

body.is-filing .filing-collect .cmp-dock-card .vb-submit,
body.is-filing .filing-collect .cmp-dock-card .vb-ghost,
body.is-filing .filing-collect .cmp-danger {
  width: 100%;
  min-height: 44px;
}

body.is-filing .filing-collect .cmp-danger {
  border: 1px solid rgba(180, 35, 24, 0.45);
  border-radius: 999px;
  background: #fff;
  color: #b42318;
  font: 650 0.95rem/1 "IBM Plex Sans", "Sarabun", sans-serif;
  cursor: pointer;
}

body.is-filing .filing-collect .cmp-danger:hover {
  background: rgba(180, 35, 24, 0.08);
}

body.is-filing .filing-collect .cmp-notify-bar {
  justify-items: stretch;
  text-align: start;
}

@media (max-width: 760px) {
  body.is-filing .filing-collect .cmp-dock,
  body.is-filing .filing-collect .cmp-hero {
    grid-template-columns: 1fr;
    display: grid;
  }
}

body.is-filing .filing-collect .cmp-shell {
  text-align: center;
  padding: 48px 16px;
  color: rgba(8, 40, 72, 0.65);
  font: 550 1rem/1.4 "IBM Plex Sans", "Rubik", sans-serif;
}

body.is-filing .filing-collect .cmp-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: center;
  width: min(720px, 100%);
  margin: 16px auto 0;
}

body.is-filing .filing-collect .cmp-detail-actions .cmp-action-note {
  flex: 1 1 100%;
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(8, 40, 72, 0.72);
}

body.is-filing .filing-collect .cmp-danger {
  border-color: rgba(180, 40, 40, 0.35);
  color: #8b1a1a;
}

body.is-filing .filing-collect .cmp-danger:hover {
  background: rgba(180, 40, 40, 0.08);
}

#tab-profile-collect,
#panel-collect {
  display: none !important;
}

@media (max-width: 760px) {
  body.is-filing .filing-hub-grid {
    grid-template-columns: 1fr;
  }
}

body.is-filing .dash,
body.is-filing .dash-main {
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  gap: 18px;
}

body.is-filing .dash-sheet,
body.is-filing .dash-await,
body.is-filing .group-roster,
body.is-filing .group-trip,
body.is-filing .group-verdict,
body.is-filing #group-report .group-submit {
  border: 1px solid rgba(8, 40, 72, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(8, 40, 72, 0.1);
}

body.is-filing .dash-sheet {
  padding: 28px 28px 22px;
}

body.is-filing .dash-sheet::before {
  display: none;
}

body.is-filing .dash-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

body.is-filing .dash-head h1,
body.is-filing .group-submit-copy h3,
body.is-filing .group-roster h3,
body.is-filing .group-trip h3,
body.is-filing .group-verdict h3 {
  margin: 0;
  color: #072848;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
}

body.is-filing .dash-head h1 {
  font-size: clamp(2.15rem, 1.5rem + 1.5vw, 2.75rem);
  line-height: 1.12;
}

body.is-filing .dash-head .section-desc,
body.is-filing .group-submit-copy p,
body.is-filing .dash-await-hint,
body.is-filing .group-roster-note,
body.is-filing .group-trip-address {
  max-width: 38rem;
  margin-inline: auto;
  color: #16375c;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

body.is-filing .group-banner {
  background: #e7f0ff;
  border-color: #8eb4f0;
  color: #0c3a66;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

body.is-filing .group-banner--open {
  background: #d7f5e6;
  border-color: #128a58;
  color: #0b6b42;
  font-weight: 700;
}

body.is-filing .group-banner--pending {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #e7f0ff;
  border-color: #1d4ed8;
  color: #0c3a66;
  font-weight: 700;
}

body.is-filing .group-banner--pending::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 0;
  background: url("visa-buddy-mark.png?v=2") center / contain no-repeat;
  animation: vb-wait-float 2.2s ease-in-out infinite;
}

body.is-filing .dash-status-card.is-searching {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.16);
}

body.is-filing .dash-status-card.is-searching .dash-kicker,
body.is-filing .dash-status-card.is-searching .status-line {
  color: #1d4ed8;
  font-weight: 700;
}

@keyframes vb-hotel-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  body.is-filing .group-banner--pending::before {
    animation: none;
  }
}

body.is-filing .dash-head-actions {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

body.is-filing .dash-head-actions,
body.is-filing .group-submit-actions,
body.is-filing .group-submit-limits,
body.is-filing .group-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

body.is-filing .dash-head-actions .vb-ghost,
body.is-filing .group-submit-actions .btn-primary,
body.is-filing .group-submit-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

body.is-filing .vb-ico {
  width: 18px;
  height: 18px;
  flex: none;
}

body.is-filing .vb-ico,
body.is-filing .vb-ico * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.is-filing .dash-head-actions .vb-ghost {
  min-width: 220px;
}

body.is-filing #btn-dest-back {
  background: #fff;
  border: 1.5px solid #1d4ed8;
  color: #1d4ed8;
}

body.is-filing #btn-dest-back:hover {
  background: #1d4ed8;
  color: #fff;
}

body.is-filing #btn-group-template {
  background: #1d4ed8;
  border: 1.5px solid #1d4ed8;
  color: #fff;
}

body.is-filing #btn-group-template:hover {
  background: #1e40af;
  border-color: #1e40af;
  color: #fff;
}

body.is-filing .dash-upload {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

body.is-filing .dash-status-card,
body.is-filing .dash .dash-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 156px;
  padding: 18px;
  text-align: center;
}

body.is-filing .dash-status-card {
  background: #eef5ff;
  border-color: #8eb4f0;
}

body.is-filing .dash-status-card:has(.status-line.ok) {
  background: #d7f5e6;
  border-color: #128a58;
}

body.is-filing .dash-kicker {
  color: #1d4ed8;
  font-size: 0.95rem;
  font-weight: 700;
}

body.is-filing .dash-status-card:has(.status-line.ok) .dash-kicker {
  color: #0d6b45;
}

body.is-filing .dash-status-card .status-line {
  margin: 2px 0 0;
  color: #072848;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
}

body.is-filing .dash-status-card:has(.status-line.ok) .status-line {
  color: #0b6b42;
}

body.is-filing .dash-status-icon,
body.is-filing .dash-drop-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  color: #2563eb;
}

body.is-filing .dash-status-card:has(.status-line.ok) .dash-status-icon {
  color: #1f9d6a;
}

body.is-filing .dash .dash-drop {
  background: #e8f1ff;
  border: 1.5px dashed #1d4ed8;
}

body.is-filing .dash-status-card .status-line,
body.is-filing .dash-count {
  color: #0c3a66;
  font-weight: 650;
  text-align: center;
}

body.is-filing .dash .dash-drop #group-file-label {
  flex: none;
  text-align: center;
}

body.is-filing #group-live-meter {
  background: #1f9d6a;
}

body.is-filing .dash-pick {
  min-height: 44px;
  border-color: #1d4ed8;
  border-radius: 12px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
}

body.is-filing .dash-drop:hover .dash-pick,
body.is-filing .dash-drop:focus-within .dash-pick {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

body.is-filing .dash-await {
  min-height: 0;
  padding: 32px 24px;
}

body.is-filing .dash-await-cols,
body.is-filing .dash-await::after {
  display: none;
}

body.is-filing .dash-await-hint {
  margin: 0;
}

body.is-filing #group-report .group-submit {
  position: sticky;
  top: 76px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 22px 22px 18px;
}

body.is-filing .group-submit-copy h3 {
  margin-bottom: 6px;
  font-size: 1.7rem;
}

body.is-filing .group-submit-copy p {
  margin: 0;
}

body.is-filing .group-submit-limits,
body.is-filing .group-limit {
  margin-top: 4px;
  color: #082848;
  font-weight: 700;
  font-size: 1.02rem;
}

body.is-filing .group-submit-actions {
  margin: 4px 0 0;
}

body.is-filing .group-submit-actions .btn-primary {
  background: #128a58;
  border-color: #0d6b45;
  color: #fff;
  font-size: 1.08rem;
  box-shadow: 0 10px 22px rgba(18, 138, 88, 0.32);
}

body.is-filing .group-submit-actions .btn-primary:hover:not(:disabled) {
  background: #178a5c;
}

body.is-filing .group-submit-actions .btn-primary:disabled {
  background: #e8eef5;
  border-color: #d5e1ee;
  color: #5c6f84;
  box-shadow: none;
}

body.is-filing .group-submit-actions .btn-secondary {
  border: 1.5px solid #2563eb;
  background: #eef4ff;
  color: #1d4ed8;
}

body.is-filing .group-stats {
  text-align: center;
}

body.is-filing .group-stat,
body.is-filing .group-stat strong {
  text-align: center;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
}

body.is-filing .group-stat strong {
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-weight: 700;
}

body.is-filing .group-roster-table {
  font-size: 0.98rem;
  font-weight: 500;
}

body.is-filing .group-roster-table th {
  font-weight: 650;
  text-align: center;
}

body.is-filing .group-roster-table th,
body.is-filing .group-roster-table td {
  padding: 11px 12px;
}

body.is-filing .group-batch-progress {
  width: 100%;
}

body.is-filing,
body.is-filing .vb-shell {
  background-color: #d3e9f8;
  background-image: url("visa-buddy-hero-bg.png?v=2");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

body.is-filing .vb-nav,
body.is-filing .vb-nav.is-scrolled {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

body.is-filing .vb-nav.is-scrolled {
  background: rgba(244, 248, 252, 0.92);
  border-bottom: 1px solid rgba(12, 58, 102, 0.08);
  backdrop-filter: blur(16px);
}

body.is-filing .vb-ico,
body.is-filing .vb-ico * {
  color: inherit;
  stroke: currentColor;
}

body.is-filing #btn-group-template .vb-ico,
body.is-filing #btn-group-template .vb-ico *,
body.is-filing .group-submit-actions .btn-primary .vb-ico,
body.is-filing .group-submit-actions .btn-primary .vb-ico *,
body.is-filing .dash-pick {
  color: #fff;
}

body.is-filing #btn-group-template .vb-ico,
body.is-filing #btn-group-template .vb-ico *,
body.is-filing .group-submit-actions .btn-primary .vb-ico,
body.is-filing .group-submit-actions .btn-primary .vb-ico * {
  stroke: #fff;
  stroke-width: 2.2;
}

body.is-filing #btn-dest-back .vb-ico,
body.is-filing #btn-dest-back .vb-ico *,
body.is-filing .group-submit-actions .btn-secondary .vb-ico,
body.is-filing .group-submit-actions .btn-secondary .vb-ico * {
  color: #1d4ed8;
  stroke: #1d4ed8;
  stroke-width: 2.2;
}

body.is-filing #btn-dest-back:hover .vb-ico,
body.is-filing #btn-dest-back:hover .vb-ico * {
  color: #fff;
  stroke: #fff;
}

body.is-filing .dash-status-card {
  background: #fff;
  border-color: #b9cfe6;
}

body.is-filing .dash-status-card .status-line,
body.is-filing .dash-kicker,
body.is-filing .dash .dash-drop #group-file-label {
  color: #0c2c4a;
}

body.is-filing .dash .dash-drop {
  background: #fff;
  border-color: #1d4ed8;
}

body.is-filing .dash,
body.is-filing .dash-main,
body.is-filing #group-report:not([hidden]) {
  gap: 8px;
}

body.is-filing .dash-sheet,
body.is-filing .group-roster,
body.is-filing .group-trip,
body.is-filing .group-verdict,
body.is-filing #group-report .group-submit {
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(8, 40, 72, 0.07);
}

body.is-filing .dash-sheet {
  padding: 14px 16px 12px;
}

body.is-filing .dash-head {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  text-align: start;
}

body.is-filing .dash-head-copy {
  flex: 1 1 320px;
  min-width: 0;
}

body.is-filing .dash-head h1,
body.is-filing .dash-head .section-desc {
  text-align: start;
}

body.is-filing .dash-head h1 {
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 1.4rem + 0.7vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #072848;
}

body.is-filing .dash-head .section-desc {
  max-width: 42rem;
  margin: 6px 0 0;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.55;
  color: #14365a;
}

body.is-filing .group-roster-note,
body.is-filing .group-trip-address,
body.is-filing .group-submit-copy p {
  max-width: 46rem;
  margin: 0 auto 12px;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
  color: #14365a;
  text-align: center;
}

body.is-filing .dash-head-actions {
  width: auto;
  margin: 0;
}

body.is-filing .dash-head-actions .vb-ghost,
body.is-filing .group-submit-actions .btn-primary,
body.is-filing .group-submit-actions .btn-secondary {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.95rem;
}

body.is-filing .dash-head-actions .vb-ghost {
  min-width: 0;
}

body.is-filing .dash-upload {
  gap: 8px;
  margin-top: 10px;
}

body.is-filing .dash-status-card,
body.is-filing .dash .dash-drop {
  min-height: 0;
  padding: 10px 12px;
}

body.is-filing .dash-status-card {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 10px;
  text-align: start;
}

body.is-filing .dash .dash-drop {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

body.is-filing .dash-status-icon,
body.is-filing .dash-drop-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

body.is-filing .dash-kicker {
  margin: 0;
  font-size: 0.78rem;
}

body.is-filing .dash-status-card .status-line {
  flex: 1 1 180px;
  margin: 0;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: start;
}

body.is-filing .dash .dash-drop {
  background: #fff;
}

body.is-filing .dash .dash-drop #group-file-label {
  flex: none;
  color: #3d5670;
  font-size: 0.86rem;
  font-weight: 500;
  text-align: center;
}

body.is-filing .dash-pick {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.92rem;
}

body.is-filing .dash-meter,
body.is-filing .dash-count {
  flex: 1 1 100%;
}

body.is-filing .dash-meter:not(:has(#group-live-meter[style*="width"])) {
  display: none;
}

body.is-filing #group-report .group-submit {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  padding: 10px 12px;
}

body.is-filing .group-submit-actions {
  order: 1;
  margin: 0;
}

body.is-filing .group-submit-copy {
  display: contents;
}

body.is-filing .group-submit-copy h3 {
  order: 4;
  flex: 1 1 100%;
  margin: 4px 0 0;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #072848;
  text-align: center;
}

body.is-filing .group-submit-copy p {
  order: 5;
  flex: 1 1 100%;
}

body.is-filing .group-submit-limits {
  order: 3;
  flex: 1 1 auto;
}

body.is-filing .group-submit-limits,
body.is-filing .group-limit {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
}

body.is-filing .group-limit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

body.is-filing .group-limit input {
  width: 3.2rem;
  height: 32px;
  border: 1px solid #c5d4e4;
  border-radius: 8px;
  background: #f7fbff;
  color: #0c2c4a;
  font: 700 0.95rem/1 "IBM Plex Sans", "Sarabun", sans-serif;
  text-align: center;
}

body.is-filing .group-banner {
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 650;
}

body.is-filing .group-stats {
  gap: 8px;
  margin: 0;
}

body.is-filing:has(#group-report:not([hidden])) .dash-head .section-desc,
body.is-filing .group-submit-copy p,
body.is-filing .group-roster-note {
  display: none;
}

body.is-filing .group-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 108px;
  padding: 18px 14px;
  border-radius: 16px;
}

body.is-filing .group-stat strong {
  font-size: 2rem;
}

body.is-filing .group-trip {
  padding: 18px 18px 16px;
}

body.is-filing .group-trip-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

body.is-filing .group-trip-grid div {
  min-height: 108px;
  padding: 16px 12px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

body.is-filing .group-trip-grid dt {
  font-size: 0.84rem;
}

body.is-filing .group-trip-grid dd {
  font-size: 1.28rem;
  line-height: 1.25;
}

body.is-filing .group-stat span {
  color: #3d5670;
  font-size: 0.82rem;
  font-weight: 650;
}

body.is-filing .group-stat.is-ready {
  background: #e7f8ef;
  border-color: #9ed9be;
}

body.is-filing .group-stat.is-ready strong {
  color: #0b6b42;
}

body.is-filing .group-stat.is-blocked {
  background: #fff1f2;
  border-color: #f3c3c8;
}

body.is-filing .group-stat.is-blocked strong {
  color: #9f1239;
}

body.is-filing .group-stat.is-on {
  box-shadow: inset 0 0 0 2px #0c3a66;
}

body.is-filing .group-filters {
  gap: 6px;
  margin: 0;
}

body.is-filing .group-filter {
  padding: 6px 12px;
  font-size: 0.84rem;
}

body.is-filing .group-verdict,
body.is-filing .group-roster {
  padding: 10px 12px;
}

body.is-filing .group-trip {
  padding: 20px 18px 16px;
}

body.is-filing .group-verdict h3,
body.is-filing .group-roster h3,
body.is-filing .group-trip h3 {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 12px;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #072848;
  text-align: center;
}

body.is-filing .person-card {
  margin-bottom: 6px;
  padding: 8px 10px;
  border-radius: 10px;
}

body.is-filing .group-trip-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

body.is-filing .group-trip-grid div {
  min-height: 112px;
  padding: 18px 14px;
  border: 0;
  border-radius: 16px;
  background: #f3f7fb;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

body.is-filing .group-trip-grid dt {
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 0.95rem;
  font-weight: 650;
  color: #3d5670;
}

body.is-filing .group-trip-grid dd {
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0c3a66;
}

body.is-filing .group-roster,
body.is-filing .group-trip,
body.is-filing .group-verdict,
body.is-filing .group-submit,
body.is-filing .group-banner,
body.is-filing .group-stats,
body.is-filing .group-filters {
  margin: 0;
}

body.is-filing .group-roster-wrap {
  max-height: 460px;
  border-radius: 10px;
}

body.is-filing .group-roster-table {
  font-size: 0.8rem;
  font-weight: 550;
}

body.is-filing .group-roster-table th,
body.is-filing .group-roster-table td {
  padding: 6px 8px;
}

body.is-filing .group-roster-table th {
  background: #0c3a66;
  color: #fff;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}

body.is-filing .group-roster-table tbody tr:nth-child(even):not(.row-bad) {
  background: #f5f9fc;
}

body.is-filing tr.row-bad {
  background: #fff5f5;
}

body.is-filing td.cell-bad {
  background: #ffe4e6;
  color: #9f1239;
}

body.is-filing td.cell-errors {
  color: #9f1239;
}

@media (max-width: 800px) {
  body.is-filing .group-workspace {
    width: min(980px, calc(100% - 24px));
  }

  body.is-filing .dash-upload {
    grid-template-columns: 1fr;
  }

  body.is-filing .dash-head {
    flex-direction: column;
    align-items: stretch;
  }

  body.is-filing .dash-head-actions,
  body.is-filing .group-submit-actions {
    width: 100%;
  }

  body.is-filing .dash-head-actions .vb-ghost,
  body.is-filing .group-submit-actions .btn-primary,
  body.is-filing .group-submit-actions .btn-secondary {
    width: 100%;
  }

  body.is-filing .group-stats,
  body.is-filing .group-trip-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.is-filing .group-stat {
    justify-content: center;
  }
}

.group-roster,
.group-trip,
.group-submit,
.group-verdict {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

.dash .group-roster h3,
.dash .group-trip h3,
.dash .group-submit h3,
.dash .group-verdict h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.dash .group-roster-note,
.dash .group-submit p,
.dash .group-trip-address {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.group-roster-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 650;
}

tr.row-bad {
  background: #fff8eb;
}

td.cell-bad {
  background: #fde8c8;
  color: #9a3412;
  font-weight: 650;
}

td.cell-errors {
  color: #9a3412;
  font-weight: 650;
  white-space: normal;
  min-width: 10rem;
}

.group-submit .btn-primary {
  background: #0b355c;
  border-color: #0b355c;
}

.dest-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.dest-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dest-choice {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid #d5e0ea;
  background: #f7fafc;
  color: #0b355c;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.dest-choice.is-on {
  background: #0b355c;
  color: #fff;
  border-color: #0b355c;
}

.dest-doc,
.dest-soon {
  font-size: 0.75rem;
  font-weight: 650;
  color: #b8922a;
}

.dest-choice.is-on .dest-doc,
.dest-choice.is-on .dest-soon {
  color: #f0d78a;
}

.dest-session {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-chip {
  margin: 0;
  font-size: 0.88rem;
  color: #0b355c;
}

.dest-text {
  border: 0;
  background: transparent;
  color: #0b355c;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-panel,
.soon-panel {
  width: min(32rem, calc(100% - 32px));
  margin: 28px auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 18px 16px;
}

.auth-panel h2,
.soon-panel h2 {
  margin: 0 0 6px;
  color: #0b355c;
  font-size: 1.35rem;
}

.auth-panel p,
.soon-panel p {
  margin: 0 0 12px;
  color: #475569;
  line-height: 1.45;
}

.auth-panel label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-weight: 650;
  color: #0b355c;
}

.auth-panel input {
  font: inherit;
  min-height: 40px;
  border: 1px solid #d5e0ea;
  border-radius: 8px;
  padding: 0 10px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-error,
.auth-setup {
  color: #9a3412;
}

.auth-error:not(:empty) {
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff4ed;
  border: 1px solid #f3d0c2;
  font-size: 0.95rem;
  line-height: 1.45;
}

.payment-note {
  margin: 8px 0 0;
}

.payment-note a {
  color: #0b355c;
  font-weight: 650;
}

body.groups-only .group-workspace[hidden] {
  display: none;
}

.billing-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background-color: #d3e9f8;
  background-image: url("visa-buddy-hero-bg.png?v=2");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  color: #0b355c;
}

.billing-card {
  width: min(32rem, calc(100% - 32px));
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
}

.billing-logo {
  display: block;
  width: 112px;
  height: auto;
  margin: 0 auto 14px;
  background: transparent;
}

.billing-kicker {
  margin: 0 0 6px;
  color: #b8922a;
  font-weight: 650;
}

.billing-card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.billing-back {
  color: #12336b;
  font-weight: 650;
}

.billing-page {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.billing-card p {
  margin: 0 0 16px;
  line-height: 1.55;
  color: #334155;
}

.billing-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.billing-lang {
  min-height: 44px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #fff;
  color: #12336b;
  padding: 0 14px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.billing-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.billing-back:focus-visible,
.billing-lang:focus-visible,
.vb-submit:focus-visible,
.vb-ghost:focus-visible,
.vb-google:focus-visible,
.vb-link:focus-visible,
.vb-tab:focus-visible,
.vb-nav button:focus-visible,
.lang-flag-btn:focus-visible,
.btn-secondary:focus-visible,
.dash-pick:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.vb-home h1,
.vb-country h2,
.billing-card h1 {
  text-wrap: balance;
}

.group-batch-metrics strong,
.group-batch-statline,
.dash-count {
  font-variant-numeric: tabular-nums;
}

.group-batch-modal-card,
.vb-card {
  overscroll-behavior: contain;
}

@media (prefers-reduced-motion: reduce) {
  .vb-submit:hover,
  .vb-ghost:hover {
    transform: none;
  }
}

@media (max-width: 700px) {
  .dash-main {
    padding: 12px 12px 16px;
  }

  .dash-head {
    flex-direction: column;
    gap: 8px;
  }

  .dash-upload,
  .dash-await-cols {
    grid-template-columns: 1fr;
  }

  .dash-await-cols {
    display: none;
  }
}

.vb-auth,
.vb-dest {
  --vb-ink: #0f172a;
  --vb-primary: #1e3a8a;
  --vb-accent: #2563eb;
  --vb-paper: #f4f7fb;
  --vb-line: #dbe4f0;
  color: var(--vb-ink);
  font-family: var(--font);
}

.vb-auth[hidden],
.vb-dest[hidden],
.vb-pane[hidden],
.vb-place[hidden] {
  display: none;
}

.vb-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
    linear-gradient(180deg, #e8eef8 0%, var(--vb-paper) 42%);
}

.vb-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--vb-line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(30, 58, 138, 0.12);
  padding: 28px 26px 22px;
}

.vb-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--vb-primary);
}

.vb-logo--bar {
  justify-content: flex-start;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
  font-size: 0.82rem;
}

.vb-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--vb-primary);
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0;
  font-size: 0.95rem;
}

.vb-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  background: #eef3fb;
  border-radius: 12px;
}

.vb-tab {
  border: 0;
  background: transparent;
  color: #475569;
  border-radius: 9px;
  min-height: 40px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.vb-tab.is-on {
  background: #fff;
  color: var(--vb-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.vb-pane {
  display: grid;
  gap: 12px;
  animation: vb-pane-in 180ms ease;
}

.vb-pane label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}

.vb-pane input[type="email"],
.vb-pane input[type="password"],
.vb-pane input[type="text"],
.vb-search {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--vb-line);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  color: var(--vb-ink);
  background: #fff;
}

.vb-pane input:focus,
.vb-search:focus {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  border-color: var(--vb-accent);
}

.vb-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 1px solid #d5deea;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.vb-google svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.vb-google:hover {
  background: #f8fafc;
  border-color: #b9c6d8;
}

.vb-google:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vb-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 2px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.vb-or::before,
.vb-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--vb-line);
}

.vb-link {
  justify-self: start;
  border: 0;
  background: none;
  padding: 0;
  color: var(--vb-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.vb-submit,
.vb-ghost {
  min-height: 44px;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.vb-submit {
  border: 0;
  background: var(--vb-accent);
  color: #fff;
}

.vb-submit:hover,
.vb-ghost:hover {
  transform: translateY(-1px);
}

.vb-submit:hover {
  background: var(--vb-primary);
}

.vb-ghost {
  border: 1px solid var(--vb-line);
  background: #fff;
  color: var(--vb-primary);
}

.vb-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.45;
}

.vb-check input {
  margin-top: 3px;
}

.vb-card .lang-flag-btn {
  margin-top: 16px;
}

.vb-dest {
  min-height: 100vh;
  background: var(--vb-paper);
}

.vb-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 8px;
}

.vb-top h1 {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  color: var(--vb-primary);
}

.vb-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vb-dest-body {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 40px;
}

.vb-dest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.vb-dest-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.vb-search {
  width: min(280px, 100%);
}

.vb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vb-place {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--vb-line);
  border-radius: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.vb-place.is-open:hover {
  border-color: var(--vb-accent);
  box-shadow: 0 14px 34px rgba(30, 58, 138, 0.1);
}

.vb-place.is-soon {
  background: #f8fafc;
  opacity: 0.78;
}

.vb-flag svg {
  width: 54px;
  height: 36px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.vb-place-copy h3,
.vb-place-copy p {
  margin: 0;
}

.vb-place-copy {
  grid-column: 2;
}

.vb-code {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.vb-badge {
  justify-self: start;
  grid-column: 1 / -1;
  border-radius: 999px;
  padding: 3px 10px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
}

.vb-badge.is-live {
  background: #dbeafe;
  color: var(--vb-primary);
}

.vb-place .vb-submit,
.vb-place .vb-ghost {
  grid-column: 1 / -1;
}

.vb-ghost.is-saved {
  background: #ecfdf3;
  border-color: #86efac;
  color: #166534;
}

.dash-brand {
  color: #1e3a8a;
}

.dash-side .vb-ghost {
  width: auto;
  padding: 0 12px;
}

@keyframes vb-pane-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .vb-top,
  .vb-dest-head {
    flex-direction: column;
    align-items: stretch;
  }

  .vb-grid {
    grid-template-columns: 1fr;
  }

  .vb-search {
    width: 100%;
  }
}

.vb-shell {
  --vb-primary: #12336b;
  --vb-accent: #2563eb;
  --vb-line: #dbe4f0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: #d3e9f8;
  background-image: url("visa-buddy-hero-bg.png?v=2");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  color: #102844;
}

.vb-shell[hidden],
.vb-country[hidden],
.vb-auth-links[hidden],
.vb-user[hidden] {
  display: none;
}

.vb-nav {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 28px;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.vb-nav.is-scrolled {
  background: rgba(244, 248, 252, 0.92);
  border-bottom: 1px solid rgba(12, 58, 102, 0.08);
  backdrop-filter: blur(16px);
}

.vb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.vb-brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: none;
  display: block;
  background: transparent;
  transition: transform 0.25s ease;
}

.vb-brand:hover .vb-brand-logo {
  transform: translateY(-2px);
}

.vb-brand-word {
  width: 68px;
  height: 34px;
  flex: none;
  display: block;
}

.vb-brand-he {
  display: block;
  color: #12336b;
  font-size: 0.75rem;
  font-weight: 650;
}

.vb-nav-links {
  display: flex;
  gap: 4px;
}

.vb-nav-links button,
.vb-auth-links button {
  border: 0;
  background: transparent;
  color: #1e3a5f;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.vb-nav-links button {
  padding: 8px 12px;
  border-radius: 999px;
}

.vb-nav-links button[hidden] {
  display: none;
}

.vb-nav-links button:hover,
.vb-auth-links button:hover {
  color: #1d4ed8;
}

.vb-nav-links button:hover {
  background: rgba(37, 99, 235, 0.08);
}

.vb-nav-end,
.vb-auth-links,
.vb-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vb-nav-end {
  margin-inline-start: auto;
}

.vb-home {
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vb-home[hidden] {
  display: none !important;
}

.vb-hero-band {
  position: relative;
  isolation: isolate;
  background: transparent;
  padding: 18px 18px 42px;
}

.vb-dest-band {
  background: transparent;
  padding: 8px 18px 52px;
  flex: 1;
}

.vb-landing,
.vb-home-layout {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.vb-landing {
  margin-bottom: 0;
  text-align: center;
}

.vb-landing-copy {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.vb-wordmark {
  position: relative;
  width: min(280px, 70vw);
  margin: 0 auto 2px;
}

.vb-hero-word,
.vb-hero-mascot {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.vb-hero-mascot {
  position: absolute;
  inset: 0;
  animation: vb-hop 6.8s ease-in-out infinite;
}

@keyframes vb-hop {
  0%, 74%, 100% { transform: translate3d(0, 0, 0); }
  82% { transform: translate3d(0, -7px, 0); }
  90% { transform: translate3d(0, 0, 0); }
}

.vb-orbit {
  --vb-lap: 12s;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.vb-wake {
  fill: none;
  stroke-linecap: round;
  animation-duration: var(--vb-lap);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.vb-wake-far {
  stroke: #8eafd0;
  stroke-width: 10;
  opacity: 0.32;
  stroke-dasharray: 16 84;
  filter: url("#vb-wake-blur");
  animation-name: vb-wake-far;
}

.vb-wake-mid {
  stroke: #d7e6f5;
  stroke-width: 4;
  opacity: 0.9;
  stroke-dasharray: 9 91;
  animation-name: vb-wake-mid;
}

.vb-wake-near {
  stroke: #ffffff;
  stroke-width: 2;
  opacity: 0.95;
  stroke-dasharray: 4 96;
  animation-name: vb-wake-near;
}

.vb-flyer {
  offset-path: path("M 380 48 L 590 48 A 152 152 0 0 1 590 352 L 170 352 A 152 152 0 0 1 170 48 L 380 48");
  offset-rotate: 0deg;
  offset-anchor: 0px 0px;
  animation: vb-fly var(--vb-lap) linear infinite;
}

.vb-plane {
  transform-box: fill-box;
  transform-origin: center;
  animation: vb-attitude var(--vb-lap) linear infinite;
}

@keyframes vb-fly {
  to { offset-distance: 100%; }
}

@keyframes vb-wake-far {
  from { stroke-dashoffset: 14; }
  to { stroke-dashoffset: -86; }
}

@keyframes vb-wake-mid {
  from { stroke-dashoffset: 14; }
  to { stroke-dashoffset: -86; }
}

@keyframes vb-wake-near {
  from { stroke-dashoffset: 14; }
  to { stroke-dashoffset: -86; }
}

@keyframes vb-attitude {
  0%, 16% { transform: scaleX(1) rotate(0deg); }
  23% { transform: scaleX(1) rotate(8deg); }
  24.7% { transform: scaleX(1) rotate(10deg); animation-timing-function: step-end; }
  25.3% { transform: scaleX(-1) rotate(-10deg); }
  34%, 66% { transform: scaleX(-1) rotate(0deg); }
  73% { transform: scaleX(-1) rotate(-8deg); }
  74.7% { transform: scaleX(-1) rotate(-10deg); animation-timing-function: step-end; }
  75.3% { transform: scaleX(1) rotate(10deg); }
  84%, 100% { transform: scaleX(1) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .vb-flyer,
  .vb-plane,
  .vb-wake,
  .vb-hero-mascot {
    animation: none;
  }

  .vb-flyer {
    offset-distance: 8%;
  }

  .vb-plane {
    transform: none;
  }

  .vb-wake-far,
  .vb-wake-mid,
  .vb-wake-near { stroke-dashoffset: 14; }
}

.vb-greet {
  margin: 0;
  max-width: 36rem;
  color: #0c3a66;
  font-size: 1.28rem;
  font-weight: 650;
  line-height: 1.45;
}

.vb-landing-name {
  margin: 0;
  display: grid;
  justify-items: center;
  color: #0c3a66;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.86;
}

.vb-landing-name span:first-child {
  font-size: clamp(3.6rem, 7.4vw, 5.4rem);
}

.vb-landing-name span:last-child {
  font-size: clamp(2.35rem, 4.8vw, 3.45rem);
}

.vb-landing-lead {
  margin: 0;
  max-width: 40rem;
  color: #12336b;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.55;
}

.vb-landing-close {
  margin: 0;
  max-width: 36rem;
  color: #0c3a66;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.vb-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.vb-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0c3a66;
  font-size: 1.08rem;
  font-weight: 700;
}

.vb-steps b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #0c3a66;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.vb-landing .vb-search {
  width: min(320px, 100%);
  margin-top: 4px;
}

.vb-home-layout {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.vb-reel {
  min-width: 0;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
}

.vb-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.vb-carousel-btn {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0c3a66;
  box-shadow: 0 8px 20px rgba(12, 58, 102, 0.16);
  cursor: pointer;
}

.vb-carousel-btn svg {
  width: 22px;
  height: 22px;
}

.vb-carousel-btn:hover {
  color: #14804a;
}

.vb-carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.vb-carousel-btn:focus-visible {
  outline: 2px solid #0c3a66;
  outline-offset: 3px;
}

.vb-reel-hint,
.vb-dots {
  display: none;
}

[dir="rtl"] #carousel-prev svg {
  transform: scaleX(-1);
}

[dir="ltr"] #carousel-next svg {
  transform: scaleX(-1);
}

.vb-board {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 18px;
  align-items: stretch;
  width: auto;
  margin: 0;
  padding: 22px 2px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.vb-board::-webkit-scrollbar {
  display: none;
}

.vb-country {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(18, 51, 107, 0.08);
}

.vb-country {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 250px;
  scroll-snap-align: start;
  margin-top: 0;
}

.vb-country.is-live {
  border-color: #14804a;
  border-width: 2px;
  box-shadow: 0 18px 42px rgba(20, 128, 74, 0.22);
}

.vb-country.is-live .vb-doc {
  color: #0f7a45;
}

.vb-country.is-live .vb-badge.is-live {
  background: #dcfce7;
  color: #166534;
}

.vb-country.is-live .vb-submit {
  background: #14804a;
}

.vb-country.is-live .vb-submit:hover {
  background: #0f6b3c;
}

.vb-country.is-locked {
  opacity: 1;
}

.vb-scene,
.vb-country.is-live .vb-scene {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: #dbe7f3;
}

.vb-flag-pin {
  position: absolute;
  z-index: 2;
  top: -14px;
  left: 50%;
  width: 52px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 16px rgba(12, 58, 102, 0.22), 0 0 0 3px #fff;
}

.vb-flag-pin svg {
  display: block;
  width: 100%;
  height: 100%;
}

.vb-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.vb-scene--thai img {
  object-position: center 38%;
}

.vb-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.42), transparent);
  pointer-events: none;
}

.vb-live-flag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  width: 36px;
  height: 24px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.vb-live-flag svg {
  width: 36px;
  height: 24px;
}

.vb-country-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 16px 16px 16px;
  text-align: center;
}

.vb-country .vb-submit,
.vb-hold {
  width: 100%;
  margin-top: auto;
  text-align: center;
}

.vb-hold {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid #d5e0ee;
  border-radius: 10px;
  background: #f4f7fb;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 650;
}

.vb-country-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vb-country h2 {
  margin: 0;
  min-height: 2.4em;
  display: grid;
  place-items: center;
  color: #12336b;
  font-size: 1.2rem;
}

.vb-country p {
  margin: 0;
  min-height: 2.8em;
  color: #475569;
  font-size: 0.92rem;
}

.vb-country p.vb-doc {
  min-height: 2.6em;
  color: #1d4ed8;
  font-size: 1rem;
  font-weight: 700;
}

.vb-country.is-locked p.vb-doc {
  color: #64748b;
}

.vb-country p.vb-hold {
  min-height: 44px;
}

.vb-lock {
  width: 12px;
  height: 12px;
  margin-inline-end: 4px;
  fill: currentColor;
  stroke: currentColor;
}

.vb-foot {
  margin-top: auto;
  display: grid;
  gap: 22px;
  padding: 32px 28px 26px;
  background: #0c3a66;
  color: #d5e4f4;
}

.vb-foot-inner,
.vb-foot-meta {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.vb-foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 40px;
  align-items: center;
}

.vb-foot-mark {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin: 0 0 8px;
  background: transparent;
}

.vb-foot-name {
  display: grid;
  justify-items: start;
  margin: 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.88;
}

.vb-foot-name span:first-child {
  font-size: 1.65rem;
}

.vb-foot-name span:last-child {
  font-size: 1.15rem;
}

.vb-foot-brand p {
  margin: 10px 0 0;
  max-width: 34rem;
  color: #d5e4f4;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.vb-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.vb-foot button {
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.vb-foot button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.vb-foot button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.vb-foot button[hidden] {
  display: none;
}

.vb-foot-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.vb-foot-meta p {
  margin: 0;
}

.vb-auth {
  position: fixed;
  inset: 0;
  z-index: 2100;
  min-height: 0;
  background: rgba(10, 28, 68, 0.42);
  backdrop-filter: blur(8px);
}

.vb-auth-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.vb-card {
  position: relative;
  z-index: 1;
}

.vb-auth-x {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 1.3rem;
  cursor: pointer;
}

.vb-lockup {
  width: min(248px, 84%);
  height: auto;
  display: block;
  margin: 0 auto 16px;
}

@media (max-width: 980px) {
  .vb-nav {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .vb-country {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 760px) {
  .vb-nav {
    display: grid;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px;
    background: rgba(244, 248, 252, 0.94);
    border-bottom: 1px solid rgba(12, 58, 102, 0.06);
    backdrop-filter: blur(16px);
  }

  .vb-brand {
    justify-self: start;
    max-width: calc(100% - 60px);
  }

  #lang-flag-dest {
    position: absolute;
    top: 14px;
    inset-inline-end: 16px;
  }

  .vb-nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
  }

  .vb-nav-links button {
    padding: 10px 4px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .vb-nav-end {
    margin: 0;
    justify-content: stretch;
  }

  .vb-auth-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .vb-auth-links > span {
    display: none;
  }

  .vb-auth-links button {
    min-height: 46px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
  }

  #btn-open-register {
    background: #fff;
    color: #0c3a66;
    border: 1.5px solid rgba(12, 58, 102, 0.16);
  }

  #btn-open-login {
    background: #0c3a66;
    color: #fff;
    box-shadow: 0 8px 18px rgba(12, 58, 102, 0.16);
  }

  .vb-hero-band {
    padding: 8px 20px 20px;
  }

  .vb-wordmark {
    width: min(220px, 60vw);
  }

  .vb-landing-copy {
    gap: 14px;
  }

  .vb-greet,
  .vb-landing-lead,
  .vb-landing-close {
    line-height: 1.6;
  }

  .vb-greet {
    font-size: 1.2rem;
  }

  .vb-landing-lead {
    font-size: 1.02rem;
  }

  .vb-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .vb-steps li {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding: 12px 6px 11px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(12, 58, 102, 0.06);
    font-size: 0.78rem;
    line-height: 1.25;
    text-align: center;
  }

  .vb-steps b {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.85rem;
  }

  .vb-landing .vb-search {
    width: min(420px, 100%);
    min-height: 50px;
    margin-top: 2px;
    border-radius: 14px;
  }

  .vb-dest-band {
    padding: 4px 16px 40px;
  }

  .vb-carousel {
    position: relative;
    display: block;
  }

  .vb-board {
    gap: 12px;
    padding: 22px 0 8px;
    scroll-snap-type: x mandatory;
  }

  .vb-country {
    flex: 0 0 88%;
    min-width: 0;
    scroll-snap-align: start;
    border-radius: 22px;
  }

  .vb-reel-hint {
    display: block;
    margin: 2px 0 0;
    text-align: center;
    color: #5d7290;
    font-size: 0.92rem;
    font-weight: 700;
  }

  .vb-reel-hint[hidden] {
    display: none;
  }

  .vb-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: 10px 0 0;
  }

  .vb-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(12, 58, 102, 0.22);
    cursor: pointer;
  }

  .vb-dot.is-on {
    width: 22px;
    background: #0c3a66;
  }

  .vb-carousel-btn {
    position: absolute;
    top: 124px;
    z-index: 4;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.94);
  }

  #carousel-prev {
    inset-inline-start: 10px;
  }

  #carousel-next {
    inset-inline-end: 10px;
  }

  .vb-scene,
  .vb-country.is-live .vb-scene {
    height: 248px;
    border-radius: 22px 22px 0 0;
  }

  .vb-country-body {
    gap: 12px;
    padding: 18px 18px 20px;
  }

  .vb-country h2,
  .vb-country p,
  .vb-country p.vb-doc {
    min-height: 0;
  }

  .vb-country h2 {
    font-size: 1.6rem;
  }

  .vb-country p {
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .vb-country p.vb-doc {
    font-size: 1.08rem;
  }

  .vb-country .vb-submit,
  .vb-hold {
    min-height: 52px;
    border-radius: 14px;
    font-size: 1.05rem;
  }

  .vb-foot-inner {
    grid-template-columns: 1fr;
  }

  .vb-foot nav {
    justify-content: flex-start;
  }

  .vb-auth {
    place-items: start center;
    overflow: auto;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .vb-auth .vb-lockup {
    width: min(168px, 56%);
    margin-bottom: 8px;
  }

  .vb-auth .vb-card {
    padding: 16px 16px 14px;
  }

  .vb-card .lang-flag-btn {
    margin-top: 8px;
  }

  .vb-shell {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .vb-about,
  .vb-contact {
    margin-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .vb-pane input[type="email"],
  .vb-pane input[type="password"],
  .vb-pane input[type="text"],
  .vb-pane input[type="tel"],
  .vb-pane select,
  .vb-pane textarea,
  .cmp-page .cmp-grid input:not([type="hidden"]),
  .cmp-page .cmp-grid select,
  .cmp-page textarea,
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

.vb-nav-links button.is-on {
  background: rgba(255, 255, 255, 0.88);
  color: #0c3a66;
  box-shadow: 0 4px 14px rgba(12, 58, 102, 0.08);
}

.vb-account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 16.5rem;
  min-height: 46px;
  padding-block: 4px;
  padding-inline: 4px 14px;
  border: 1px solid #d5deea;
  border-radius: 999px;
  background: #fff;
  color: #072848;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.vb-account-copy {
  display: grid;
  justify-items: start;
  min-width: 0;
  line-height: 1.15;
}

#account-name,
#account-role {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 11rem;
}

#account-name {
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #072848;
}

#account-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
}

#account-role::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.vb-account[data-role="lead"] {
  border-color: #c5d8ec;
  background: #fff;
}

.vb-account[data-role="lead"] .vb-avatar {
  background: #0c3a66;
  box-shadow: 0 0 0 2px #d4e4f4;
}

.vb-account[data-role="lead"] #account-role {
  color: #1a5278;
}

.vb-account[data-role="staff"] {
  border-color: #c9d7f5;
  background: #f7faff;
}

.vb-account[data-role="staff"] .vb-avatar {
  background: #1d4ed8;
  box-shadow: 0 0 0 2px #dbe7ff;
}

.vb-account[data-role="staff"] #account-role {
  color: #1e40af;
}

.vb-account[data-role="lead"]:hover {
  border-color: #0c3a66;
}

.vb-account[data-role="staff"]:hover,
.vb-account[data-role="account"]:hover {
  border-color: #1d4ed8;
}

.vb-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #0c3a66;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.vb-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vb-avatar--lg {
  width: 88px;
  height: 88px;
  font-size: 1.7rem;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px #d5deea;
}

.vb-file-id strong {
  display: block;
  color: #0c3a66;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.15;
}

.vb-file-id span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.92rem;
}

.vb-report-link {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1e3a8a;
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.vb-file {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.vb-file[hidden] {
  display: none;
}

.vb-file-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.vb-file-head h1 {
  margin: 0;
  color: #0c3a66;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: clamp(1.8rem, 1.35rem + 1vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
}

.vb-file-head p {
  margin: 8px 0 0;
  max-width: 36rem;
  color: #475569;
}

.vb-file-head .vb-ghost,
.vb-file-actions .vb-ghost,
.vb-file-actions .vb-submit {
  width: auto;
  padding-inline: 16px;
}

.vb-file-grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.vb-file-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  padding: 18px;
}

.vb-file-person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e7eef6;
}

.vb-file-card label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
}

.vb-file-card input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 500;
}

.vb-file-card input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  border-color: #2563eb;
}

.vb-file-since,
.vb-file-note {
  min-height: 1.2em;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 0.9rem;
}

.vb-file-note:empty {
  display: none;
}

.vb-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vb-report h2 {
  margin: 0 0 8px;
  color: #0c3a66;
  font-size: 1.2rem;
}

.vb-report-summary {
  margin: 0 0 16px;
  color: #0c3a66;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.4;
}

.vb-report-scroll {
  overflow-x: auto;
}

.vb-report-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.vb-col-date { width: 22%; }
.vb-col-file { width: 28%; }
.vb-col-dest { width: 16%; }
.vb-col-people { width: 18%; }
.vb-col-state { width: 16%; }

.vb-report-table th {
  padding: 0 8px 8px;
  border-bottom: 1px solid #dbe4f0;
  color: #64748b;
  font-weight: 600;
  text-align: start;
}

.vb-report-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}

.vb-report-table td:nth-child(4),
.vb-report-table td:first-child {
  font-variant-numeric: tabular-nums;
}

.vb-report-file {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vb-report-sub {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 0.8rem;
}

.vb-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vb-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.vb-state.is-done i {
  background: #1f9d6a;
}

.vb-state.is-run i {
  background: #2563eb;
}

.vb-state.is-stop i {
  background: #b45309;
}

.vb-account:focus-visible,
.vb-report-link:focus-visible,
.vb-file-head .vb-ghost:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .vb-file-grid {
    grid-template-columns: 1fr;
  }

  .vb-file-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.vb-tos-next {
  margin: 4px 0 0;
  color: #3a3a3a;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 400;
}

.vb-signup-lock,
.vb-signup-hint,
.vb-signup-ok {
  margin: 0;
  text-align: center;
}

.vb-signup-lock {
  color: #0c3a66;
  font-weight: 700;
  line-height: 1.45;
}

.vb-signup-hint {
  color: #23486f;
  font-size: 0.95rem;
  line-height: 1.45;
}

#reg-code {
  text-align: center;
  letter-spacing: 0.08em;
  font-weight: 700;
}

#reg-gate,
#reg-account {
  display: grid;
  gap: 12px;
}

#reg-gate[hidden],
#reg-account[hidden],
#btn-google[hidden],
#view-auth .vb-card > .vb-or[hidden] {
  display: none;
}

.vb-signup-ok {
  color: #0b6b42;
  font-weight: 700;
}

#reg-code-note:empty {
  display: none;
}

.vb-tos {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  background: rgba(24, 24, 24, 0.62);
}

.vb-tos[hidden] {
  display: none !important;
}

.vb-tos-card {
  width: min(720px, 100%);
  max-height: min(90vh, 860px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 32px 18px;
  overflow: auto;
  border-radius: 0;
  background: #fff;
  border: 1px solid #111;
  box-shadow: none;
  color: #111;
  font-family: "Source Serif 4", Georgia, serif;
}

.vb-tos-mast {
  padding-bottom: 12px;
  border-bottom: 1px solid #111;
  text-align: center;
}

.vb-tos-doc {
  margin: 0;
  color: #111;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.vb-tos-card h2 {
  margin: 8px 0 0;
  color: #111;
  font-size: 1.7rem;
  line-height: 1.2;
  font-weight: 600;
}

.vb-tos-ver {
  margin: 6px 0 0;
  color: #333;
  font-size: 0.95rem;
}

.vb-tos-party {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #111;
  color: #111;
  font-size: 1rem;
  line-height: 1.45;
  text-align: center;
}

.vb-tos-party bdi {
  direction: ltr;
  unicode-bidi: isolate;
}

.vb-tos-scroll {
  overflow: auto;
  max-height: min(42vh, 360px);
  padding: 4px 2px 8px;
  border: 0;
  background: #fff;
  color: #111;
}

.vb-tos-article {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 16px;
}

.vb-tos-article > span {
  color: #111;
  font-weight: 600;
  line-height: 1.45;
}

.vb-tos-scroll h3 {
  margin: 0 0 4px;
  color: #111;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 600;
}

.vb-tos-scroll p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #1a1a1a;
}

.vb-tos-hint {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #333;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.45;
}

.vb-tos.is-ready .vb-tos-hint {
  background: transparent;
  color: #111;
}

.vb-tos-signpad {
  display: grid;
  gap: 6px;
}

.vb-tos-signhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.vb-tos-signhead p {
  margin: 0;
  color: #111;
  font-size: 0.95rem;
}

#tos-clear {
  border: 0;
  background: transparent;
  color: #111;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
}

#tos-pad {
  width: 100%;
  height: 140px;
  display: block;
  background: #fff;
  border: 1px solid #111;
  touch-action: none;
  cursor: crosshair;
}

.vb-tos-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #111;
}

.vb-tos-check input:disabled + span {
  color: #444;
}

.vb-tos-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 4px;
  accent-color: #111;
  flex: 0 0 auto;
}

.vb-tos-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid #111;
}

.vb-tos-actions .vb-tos-close,
.vb-tos-actions #tos-accept {
  transform: none;
  border-radius: 0;
  font-family: "IBM Plex Sans", sans-serif;
}

.vb-tos-actions .vb-tos-close:hover,
.vb-tos-actions #tos-accept:hover {
  transform: none;
}

.vb-tos-close {
  border: 0;
  background: transparent;
  color: #111;
  padding: 8px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.vb-tos-actions #tos-accept {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  padding: 10px 18px;
  font-weight: 500;
  cursor: pointer;
}

.vb-tos-actions #tos-accept:disabled {
  opacity: 1;
  background: #fff;
  color: #666;
  border-color: #bdbdbd;
  cursor: not-allowed;
}

.vb-tos.is-ready .vb-tos-actions #tos-accept:not(:disabled) {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: none;
}

.vb-tos.is-ready .vb-tos-actions #tos-accept:not(:disabled):hover {
  background: #000;
}

.vb-tos-error {
  margin: 0;
  min-height: 1.2em;
  color: #6b1d1d;
  font-weight: 500;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.92rem;
}

.vb-tos-scroll:focus-visible,
.vb-tos-check input:focus-visible,
.vb-tos-actions button:focus-visible {
  outline: 1px solid #111;
  outline-offset: 3px;
}

body.vb-tos-open {
  overflow: hidden;
}

.vb-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.vb-kpi {
  background: #fff;
  border: 1px solid #d5e1ee;
  border-radius: 12px;
  padding: 16px 18px 14px;
}

.vb-kpi p {
  margin: 0 0 6px;
  color: #3e5168;
  font-size: 0.86rem;
}

.vb-kpi strong {
  display: block;
  color: #0c3a66;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.vb-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.vb-profile-tabs button {
  border: 1px solid #d5e1ee;
  background: #fff;
  color: #0c3a66;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}

.vb-profile-tabs button[aria-selected="true"] {
  background: #0c3a66;
  border-color: #0c3a66;
  color: #fff;
}

.vb-profile-panel {
  display: grid;
  gap: 12px;
}

.vb-profile-panel[hidden],
.vb-report-scroll[hidden] {
  display: none;
}

a.vb-submit {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
}

.vb-balance strong {
  display: block;
  margin: 4px 0 12px;
  color: #0c3a66;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
}

.vb-inline {
  display: inline-flex;
  margin-top: 8px;
  text-decoration: none;
}

.vb-report-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr);
  gap: 8px;
  margin: 0 0 12px;
}

.vb-report-filters input,
.vb-report-filters select,
#profile-email[readonly] {
  width: 100%;
  border: 1px solid #d5e1ee;
  background: #fff;
  color: #0c3a66;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

#profile-email[readonly] {
  background: #f4f8fc;
  color: #3e5168;
}

#profile-tos {
  margin: 0;
  color: #3e5168;
}

#profile-tos.is-on {
  color: #0c3a66;
}

#btn-agreement-pdf {
  width: auto;
  margin-top: 10px;
  padding-inline: 14px;
}

#btn-agreement-pdf[hidden] {
  display: none !important;
}

.vb-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 9.5rem;
}

.vb-row-actions .vb-ghost {
  width: auto;
  padding: 6px 10px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.vb-log {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 28, 68, 0.55);
}

.vb-log[hidden] {
  display: none;
}

.vb-log-card {
  width: min(760px, 100%);
  max-height: min(88vh, 52rem);
  overflow: auto;
  background: #fbfdff;
  border: 1px solid rgba(12, 58, 102, 0.1);
  border-radius: 22px;
  padding: 22px 22px 16px;
  box-shadow: 0 28px 70px rgba(7, 40, 72, 0.28);
}

#job-log-close {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(12, 58, 102, 0.28);
  background: #fff;
  color: #0c3a66;
}

.vb-log-card h2 {
  margin: 0 0 12px;
  color: #072848;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

.vb-log-people {
  margin: 0 0 12px;
  overflow: auto;
  max-height: 280px;
  border: 1px solid #d5e2ef;
  border-radius: 14px;
}

.vb-people {
  width: 100%;
  border-collapse: collapse;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 0.86rem;
}

.vb-people th {
  position: sticky;
  top: 0;
  padding: 8px 10px;
  background: #0c3a66;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.vb-people td {
  padding: 8px 10px;
  border-top: 1px solid #e4eef6;
  color: #0c3a66;
  text-align: center;
  vertical-align: top;
}

.vb-log-card .vb-file-note,
.vb-log-card dl {
  text-align: start;
}

.vb-log-card dl {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0 0 12px;
}

.vb-log-card dt {
  color: #3e5168;
}

.vb-log-card dd {
  margin: 0;
  color: #0c3a66;
}

@media (max-width: 700px) {
  .vb-kpis,
  .vb-report-filters {
    grid-template-columns: 1fr;
  }

  .vb-log-card dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .vb-tos-card {
    padding: 20px 16px 14px;
  }

  .vb-tos-card h2 {
    font-size: 1.4rem;
  }
}

body.is-profile .vb-file {
  flex: 1 0 auto;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

body.is-profile .vb-file-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

body.is-profile .vb-file-head p {
  max-width: 36rem;
}

.vb-ico {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: #0c3a66;
  flex: 0 0 auto;
}

.vb-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.is-profile .vb-kpis {
  align-items: stretch;
}

body.is-profile .vb-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 148px;
  gap: 8px;
}

body.is-profile .vb-kpi p {
  margin: 0;
}

body.is-profile .vb-kpi strong {
  margin-top: auto;
}

body.is-profile .vb-profile-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 16px;
  background: #fff;
  border: 1px solid #d5e1ee;
  border-radius: 12px;
  overflow: hidden;
}

body.is-profile.is-platform .vb-profile-tabs {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.is-profile.is-staff:not(.is-platform) .vb-profile-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.is-profile .vb-profile-tabs button[hidden] {
  display: none;
}

body.is-profile .vb-profile-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  border-inline-start: 1px solid #d5e1ee;
  background: #fff;
  color: #0c3a66;
  padding: 10px 12px;
}

body.is-profile .vb-profile-tabs button:first-child {
  border-inline-start: 0;
}

body.is-profile .vb-profile-tabs button[aria-selected="true"] {
  background: #0c3a66;
  color: #fff;
}

body.is-profile .vb-profile-tabs button[aria-selected="true"] .vb-ico {
  color: #fff;
}

body.is-profile #panel-account,
body.is-profile #panel-billing {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

body.is-profile #panel-account .vb-file-card,
body.is-profile #panel-billing .vb-file-card {
  height: auto;
}

body.is-profile #panel-billing .vb-report,
body.is-profile #panel-reports .vb-report {
  grid-column: 1 / -1;
}

body.is-profile .vb-file-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #072848;
}

body.is-profile .vb-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 800px) {
  body.is-profile .vb-profile-tabs,
  body.is-profile #panel-account,
  body.is-profile #panel-billing {
    grid-template-columns: 1fr;
  }

  body.is-profile .vb-profile-tabs button {
    border-inline-start: 0;
    border-top: 1px solid #d5e1ee;
  }

  body.is-profile .vb-profile-tabs button:first-child {
    border-top: 0;
  }
}

html[dir="rtl"] .group-batch-modal-card,
html[dir="ltr"] .group-batch-modal-card {
  text-align: center;
  width: min(34rem, 100%);
  padding: 1.45rem 1.4rem 1.15rem;
  border: 1px solid rgba(12, 58, 102, 0.1);
  border-radius: 22px;
  background: #fbfdff;
  box-shadow: 0 28px 70px rgba(7, 40, 72, 0.28);
}

.group-batch-modal-backdrop {
  background: rgba(7, 40, 72, 0.46);
  backdrop-filter: blur(6px);
}

.group-batch-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 0.85rem;
}

.group-batch-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: none;
}

.group-batch-word {
  width: 82px;
  height: 40px;
  flex: none;
}

.group-batch-modal-head h2,
.group-batch-summary h3 {
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #072848;
  text-align: center;
}

.group-batch-modal-head h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.25;
}

.group-batch-modal-lead,
.group-batch-window,
.group-batch-current,
.group-batch-summary p {
  text-align: center;
}

.group-batch-modal-lead {
  margin: 0.45rem auto 0;
  max-width: 34em;
  color: #3e5670;
  font-size: 0.98rem;
  line-height: 1.5;
}

.group-batch-window {
  margin: 0.85rem 0 0;
  border-radius: 12px;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
}

.group-batch-meter {
  height: 0.4rem;
  margin: 1.05rem 0 0.7rem;
  background: #e4eef6;
}

.group-batch-meter-fill {
  background: #1d4ed8;
}

.group-batch-statline {
  margin: 0 0 0.85rem;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #0c3a66;
}

.group-batch-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0.9rem;
  border: 1px solid #d5e2ef;
  border-radius: 14px;
  overflow: hidden;
  background: #f7fbfe;
}

.group-batch-metrics div {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-inline-start: 1px solid #d5e2ef;
  padding: 0.72rem 0.35rem 0.78rem;
  text-align: center;
}

.group-batch-metrics div:first-child {
  border-inline-start: 0;
}

.group-batch-metrics span {
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: #5b7290;
}

.group-batch-metrics strong {
  display: block;
  margin-top: 0.15rem;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0c3a66;
}

.group-batch-current {
  margin: 0;
  padding: 0.8rem 0.9rem;
  background: #f4f8fc;
  border: 0;
  border-radius: 12px;
  color: #0c3a66;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

.group-batch-current a {
  color: #1d4ed8;
  font-weight: 700;
}

.group-batch-modal-card.is-blocked .group-batch-window {
  background: #fde8e6;
  color: #8d2b24;
  border-color: #f3c7c2;
}

.group-batch-modal-card.is-blocked .group-batch-current {
  background: transparent;
  padding: 0.7rem 0 0;
}

.group-batch-modal-card.is-settled:not(.is-blocked) .group-batch-current {
  background: #e7f6ef;
  color: #0b6b42;
}

.group-batch-summary h3 {
  font-size: 1.15rem;
}

.group-batch-modal-foot {
  justify-content: center;
  gap: 0.55rem;
}

.group-batch-modal .btn-secondary,
.group-batch-modal-foot .btn-secondary {
  appearance: none;
  min-width: 7.2rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 58, 102, 0.28);
  background: #fff;
  color: #0c3a66;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-weight: 650;
  cursor: pointer;
}

@media (max-width: 640px) {
  .group-batch-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-batch-metrics div:nth-child(odd) {
    border-inline-start: 0;
  }

  .group-batch-metrics div:nth-child(n + 3) {
    border-top: 1px solid #d5e2ef;
  }
}

body.is-profile .vb-file-head h1,
body.is-profile .vb-file-head p,
body.is-profile .vb-file-card h2,
body.is-profile .vb-kpi p,
body.is-profile .vb-kpi strong,
body.is-profile .vb-file-id strong,
body.is-profile .vb-file-id span,
body.is-profile .vb-balance strong,
body.is-profile .vb-balance > p,
body.is-profile .vb-profile-tabs button,
body.is-profile .vb-file button,
body.is-profile .vb-file a.vb-submit,
body.is-profile .vb-file a.vb-ghost,
body.is-profile .vb-report-table th,
body.is-profile .vb-report-table td,
body.is-profile .vb-report-summary,
body.is-profile .vb-file-card label,
body.is-profile #pay-summary,
body.is-profile #profile-tos,
body.is-profile .vb-file-since,
body.is-profile .vb-file-note {
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
}

body.is-profile .vb-file-card h2 {
  justify-content: center;
  text-align: center;
  margin-bottom: 14px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #072848;
}

body.is-profile .vb-file-head p,
body.is-profile .vb-report-summary,
body.is-profile .vb-file-note,
body.is-profile .vb-file-since,
body.is-profile #profile-tos,
body.is-profile #pay-summary {
  text-align: center;
}

body.is-profile .vb-file-head p,
body.is-profile .vb-report-summary,
body.is-profile #pay-summary {
  font-size: 1.08rem;
  font-weight: 600;
  color: #0c3a66;
}

body.is-profile .vb-kpi p {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0c3a66;
}

body.is-profile .vb-kpi strong,
body.is-profile .vb-balance strong,
body.is-profile .vb-file-id strong {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #072848;
}

body.is-profile .vb-file-id strong {
  font-size: 1.55rem;
}

body.is-profile .vb-file-id span {
  font-size: 1rem;
  font-weight: 600;
}

body.is-profile .vb-file-person {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

body.is-profile .vb-balance {
  align-items: center;
  text-align: center;
}

body.is-profile .vb-balance > p {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0c3a66;
}

body.is-profile .vb-profile-tabs button {
  font-size: 1.05rem;
  font-weight: 700;
}

body.is-profile .vb-file-card label {
  justify-items: center;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #0c3a66;
}

body.is-profile .vb-file-actions {
  justify-content: center;
}

body.is-profile .vb-file button,
body.is-profile .vb-file a.vb-submit,
body.is-profile .vb-file a.vb-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  font-size: 1.05rem;
  font-weight: 700;
}

body.is-profile .vb-report-table th {
  padding: 11px 8px;
  background: #0c3a66;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

body.is-profile .vb-report-table td {
  text-align: center;
  font-size: 0.98rem;
  font-weight: 600;
  color: #0c3a66;
}

body.is-profile .vb-row-actions {
  align-items: center;
}

body.is-profile .vb-row-actions .vb-ghost {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.98rem;
  font-weight: 700;
}

body.is-profile .vb-file-card {
  text-align: center;
}

@media (max-width: 1100px) {
  body.is-profile .vb-profile-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-profile .vb-profile-tabs button:nth-child(n + 3) {
    border-top: 1px solid #d5e1ee;
  }

  body.is-profile .vb-profile-tabs button:nth-child(odd) {
    border-inline-start: 0;
  }
}

@media (max-width: 800px) {
  body.is-profile .vb-profile-tabs {
    grid-template-columns: 1fr;
  }
}

body.is-profile #panel-company .vb-company-actions,
body.is-profile #panel-company .vb-report-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 12px 0;
}

body.is-profile #panel-company .vb-country {
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid #d5e1ee;
  border-radius: 12px;
  background: #fff;
  color: #0c3a66;
  font: 700 1rem "IBM Plex Sans", "Sarabun", sans-serif;
}

body.is-profile #panel-company .vb-country.is-on {
  background: #0c3a66;
  color: #fff;
  border-color: #0c3a66;
}

body.is-profile #panel-company select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #0c3a66;
  font: 700 1rem "IBM Plex Sans", "Sarabun", sans-serif;
}

#password-gate {
  z-index: 2200;
}

#password-gate h2,
#password-gate p {
  text-align: center;
}

#password-gate h2 {
  margin: 4px 0 8px;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #072848;
}

#password-gate .vb-lockup {
  display: block;
  width: min(148px, 46%);
  height: auto;
  margin: 0 auto 8px;
}

#password-gate .vb-card {
  max-height: min(92vh, 820px);
  overflow: auto;
}

.vb-pass-rules {
  margin: 0;
  padding: 10px 12px 8px;
  border: 1px solid #d5e1ee;
  border-radius: 12px;
  background: #f7faff;
  text-align: start;
}

.vb-pass-rules-title {
  margin: 0 0 8px;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0c3a66;
  text-align: start;
}

.vb-pass-rules ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vb-pass-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.3;
}

.vb-pass-mark {
  width: 16px;
  height: 16px;
  border: 1.5px solid #c5d4e4;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: #fff;
}

.vb-pass-rules li.is-met {
  color: #0b6b42;
}

.vb-pass-rules li.is-met .vb-pass-mark {
  border-color: #128a58;
  background: #128a58;
}

.vb-pass-rules li.is-met .vb-pass-mark::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
}

.vb-pass-rules.is-tried li:not(.is-met) {
  color: #7a1f1f;
}

.vb-pass-rules.is-tried li:not(.is-met) .vb-pass-mark {
  border-color: #c4a4a4;
}

#password-gate .vb-pass-rules,
#password-gate .vb-pass-rules-title,
#password-gate .vb-pass-rules li {
  text-align: start;
}

body.is-profile #panel-company {
  width: min(680px, 100%);
  margin-inline: auto;
}

body.is-profile #panel-company .vb-file-card {
  padding: 16px 18px 14px;
  margin-bottom: 10px;
}

body.is-profile #panel-company .vb-file-card h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  text-align: center;
}

body.is-profile #panel-company .vb-file-note {
  margin: 0 auto 8px;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

body.is-profile #panel-company .vb-staff {
  display: grid;
  grid-template-columns: 0.8fr 1.35fr 0.9fr;
  gap: 8px 10px;
  align-items: end;
}

body.is-profile #panel-company .vb-staff label {
  margin-bottom: 0;
}

body.is-profile #panel-company .vb-staff-actions,
body.is-profile #panel-company .vb-staff-note {
  grid-column: 1 / -1;
}

body.is-profile #panel-company .vb-staff-actions,
body.is-profile #panel-company .vb-credential .vb-file-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

body.is-profile #panel-company .vb-credential {
  margin-top: 12px;
  padding: 10px 12px 4px;
  border-radius: 14px;
  background: #f4f8fc;
  border: 1px solid #d5e1ee;
}

body.is-profile #panel-company .vb-credential h3,
body.is-profile #panel-company .vb-staff-members h3 {
  margin: 2px 0 8px;
  text-align: center;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #072848;
}

body.is-profile #panel-company .vb-credential input {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0c3a66;
}

body.is-profile #panel-company .vb-staff-members {
  margin-top: 12px;
  padding-top: 4px;
  border-top: 1px solid #e7eef6;
}

body.is-profile #panel-company .vb-role-select {
  width: 100%;
  max-width: 11rem;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(12, 58, 102, 0.22);
  background: #fff;
  color: #0c3a66;
  font: 650 0.92rem/1.3 "IBM Plex Sans", "Sarabun", sans-serif;
}

body.is-profile #panel-company .vb-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 700px) {
  body.is-profile #panel-company .vb-staff {
    grid-template-columns: 1fr;
  }
}

body.is-profile #panel-platform {
  width: min(920px, 100%);
  margin-inline: auto;
}

body.is-profile #panel-platform .vb-file-card {
  padding: 16px 18px 14px;
  margin-bottom: 12px;
}

body.is-profile #panel-platform .vb-file-card h2,
body.is-profile #panel-platform .vb-file-card h3 {
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-weight: 700;
  color: #072848;
  text-align: center;
}

body.is-profile #panel-platform .vb-file-card h3 {
  margin: 14px 0 8px;
  font-size: 1.05rem;
}

body.is-profile #panel-platform .vb-file-note {
  margin: 0 auto 8px;
  max-width: 40rem;
  text-align: center;
}

body.is-profile #panel-platform .vb-price-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
  align-items: end;
  margin-top: 12px;
}

body.is-profile #panel-platform .vb-price-form .vb-file-actions,
body.is-profile #panel-platform .vb-price-form .vb-file-note {
  grid-column: 1 / -1;
  justify-content: center;
}

body.is-profile #panel-platform .vb-price-form .vb-file-actions {
  display: flex;
}

@media (max-width: 800px) {
  body.is-profile #panel-platform .vb-price-form {
    grid-template-columns: 1fr;
  }
}

/* After an Excel upload the report stays in the same sky, white card, and navy palette. */
body.is-filing .dash-status-card,
body.is-filing .dash-status-card:has(.status-line.ok),
body.is-filing .dash-status-card:has(.status-line.error),
body.is-filing .dash-status-card.is-searching {
  background: #fff;
  border-color: #d5e1ee;
  box-shadow: none;
}

body.is-filing .dash-status-card .dash-kicker,
body.is-filing .dash-status-card:has(.status-line.ok) .dash-kicker,
body.is-filing .dash-status-card:has(.status-line.error) .dash-kicker,
body.is-filing .dash-status-card.is-searching .dash-kicker,
body.is-filing .dash-status-card .status-line,
body.is-filing .dash-status-card:has(.status-line.ok) .status-line,
body.is-filing .dash-status-card:has(.status-line.error) .status-line,
body.is-filing .dash-status-card.is-searching .status-line {
  color: #0c3a66;
}

body.is-filing .dash-status-card .dash-status-icon,
body.is-filing .dash-status-card:has(.status-line.ok) .dash-status-icon,
body.is-filing .dash-status-card.is-searching .dash-status-icon svg {
  display: none;
}

body.is-filing .dash-status-card.is-searching .dash-status-icon {
  background: #fff url("visa-buddy-mark.png?v=2") center / 30px no-repeat;
  animation: vb-wait-float 2.2s ease-in-out infinite;
}

body.is-filing .dash .dash-drop {
  background: #eef5ff;
  border: 1.5px dashed #1d4ed8;
}

body.is-filing .dash .dash-drop #group-file-label,
body.is-filing .dash-drop-icon {
  color: #0c3a66;
}

body.is-filing .group-banner,
body.is-filing .group-banner--open,
body.is-filing .group-banner--closed,
body.is-filing .group-banner--pending {
  background: #eef5ff;
  border-color: #c5d8ee;
  color: #0c3a66;
}

body.is-filing .group-banner--pending::before {
  border-color: rgba(29, 78, 216, 0.22);
  border-top-color: #1d4ed8;
}

body.is-filing .group-stat,
body.is-filing .group-stat.is-ready,
body.is-filing .group-stat.is-blocked {
  background: #fff;
  border-color: #d5e1ee;
}

body.is-filing .group-stat strong,
body.is-filing .group-stat.is-ready strong,
body.is-filing .group-stat.is-blocked strong {
  color: #0c3a66;
}

body.is-filing .group-stat.is-on {
  background: #eef5ff;
  border-color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #1d4ed8;
}

body.is-filing .group-filter {
  background: #fff;
  border-color: #d5e1ee;
  color: #0c3a66;
}

body.is-filing .group-filter.is-active {
  background: #0c3a66;
  border-color: #0c3a66;
  color: #fff;
}

body.is-filing .group-submit-actions .btn-primary,
body.is-filing .group-submit-actions .btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: none;
}

body.is-filing .group-submit-actions .btn-secondary {
  background: #fff;
  border-color: #1d4ed8;
  color: #1d4ed8;
}

body.is-filing #group-live-meter {
  background: #1d4ed8;
}

body.is-filing .group-missing-box,
body.is-filing .miss-chip,
body.is-filing .miss-chip.person,
body.is-filing .miss-chip.group {
  background: #eef5ff;
  border: 1px solid #c5d8ee;
  color: #0c3a66;
}

body.is-filing .group-missing-box p,
body.is-filing .verdict-block h3 span,
body.is-filing .verdict-block--ready h3 span,
body.is-filing td.cell-bad,
body.is-filing td.cell-errors {
  color: #0c3a66;
}

body.is-filing tr.row-bad,
body.is-filing td.cell-bad {
  background: #eef5ff;
}

body.is-filing .person-card {
  background: #fff;
  border: 1px solid #d5e1ee;
}

body.is-filing .group-trip-grid div {
  background: #eef5ff;
  border: 0;
}

body.is-filing .group-roster,
body.is-filing .group-trip,
body.is-filing .group-verdict,
body.is-filing #group-report .group-submit {
  background: #fff;
  border: 1px solid #d5e1ee;
  box-shadow: 0 8px 20px rgba(8, 40, 72, 0.07);
}

#mfa-gate {
  z-index: 2200;
}

#mfa-gate h2,
#mfa-gate p {
  text-align: center;
}

#mfa-gate p {
  margin: 0 0 6px;
}

#mfa-gate h2 {
  margin: 0 0 6px;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: #072848;
}

#mfa-gate .vb-lockup {
  display: block;
  width: min(108px, 38%);
  height: auto;
  margin: 0 auto 2px;
}

#mfa-gate .vb-card {
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 14px 22px 12px;
}

#mfa-gate .vb-pane {
  gap: 8px;
}

.mfa-apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 10px;
}

.mfa-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 12px 4px 8px;
  border: 1px solid #d5e1ee;
  border-radius: 999px;
  background: #f7faff;
  color: #0c3a66;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.mfa-app svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.mfa-app span {
  white-space: nowrap;
}

#company-gate {
  z-index: 2200;
}

#company-gate h2,
#company-gate p,
#company-gate .company-points {
  text-align: center;
}

#company-gate h2 {
  margin: 0 0 6px;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: #072848;
}

#company-gate p {
  margin: 0 0 10px;
}

#company-gate .vb-lockup {
  display: block;
  width: min(108px, 38%);
  height: auto;
  margin: 0 auto 2px;
}

#company-gate .vb-card {
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 14px 22px 12px;
}

#company-gate .vb-pane {
  gap: 8px;
}

.vb-kind {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vb-kind label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d5e1ee;
  border-radius: 12px;
  background: #f7faff;
  color: #0c3a66;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.vb-kind input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.vb-kind label:has(input:checked) {
  background: #0c3a66;
  border-color: #0c3a66;
  color: #fff;
}

.vb-kind label:focus-within {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

#company-gate-manual,
#company-gate-contact {
  display: grid;
  gap: 8px;
}

#company-gate-manual[hidden],
#company-gate-contact[hidden],
#company-kind[hidden] {
  display: none;
}

.company-points {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.company-points li {
  background: #f7faff;
  border: 1px solid #d5e1ee;
  border-radius: 12px;
  color: #0c3a66;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 8px 12px;
}

#company-gate-result {
  display: grid;
  gap: 4px;
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 1px solid #c4a15a;
  border-radius: 14px;
  background: #fffaf0;
  text-align: center;
}

#company-gate-result[hidden] {
  display: none;
}

#company-gate-official {
  margin: 0;
  color: #0c3a66;
  font-weight: 700;
}

#company-gate-meta,
#company-gate-warn,
#company-gate .vb-file-note {
  margin: 0;
  color: #334155;
  font-size: 0.88rem;
}

#company-gate-warn {
  color: #7a1f1f;
}

#company-gate-tax {
  text-align: center;
  letter-spacing: 0.12em;
  font-weight: 700;
}

#mfa-setup {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 4px 0 8px;
}

#mfa-setup[hidden] {
  display: none;
}

#mfa-scan,
#mfa-secret-label {
  margin: 0;
  text-align: center;
  color: #334155;
  font-size: 0.92rem;
}

#mfa-qr,
#mfa-manage-qr {
  width: 280px;
  height: 280px;
  background: #fff;
  border: 1px solid rgba(12, 58, 102, 0.16);
  border-radius: 12px;
  padding: 8px;
  box-sizing: border-box;
  image-rendering: pixelated;
}

#mfa-secret {
  margin: 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

#mfa-code {
  text-align: center;
  letter-spacing: 0.28em;
  font-weight: 700;
  font-size: 1.15rem;
}

body.is-profile .vb-account-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

body.is-profile #mfa-manage {
  width: 100%;
}

.vb-account-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.vb-account-facts div {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d5e1ee;
  border-radius: 14px;
  background: #f7faff;
}

.vb-account-facts dt {
  margin: 0;
  color: #5c6b7a;
  font-size: 0.78rem;
  font-weight: 600;
}

.vb-account-facts dd {
  margin: 4px 0 0;
  color: #0c3a66;
  font-size: 1rem;
  font-weight: 700;
}

.vb-account-facts dd.is-on,
#mfa-manage-status.is-on {
  color: #0b6b42;
}

body.is-profile .vb-file {
  width: min(1080px, calc(100% - 32px));
  padding: 18px 0 28px;
}

body.is-profile .vb-file-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  margin-bottom: 10px;
}

body.is-profile .vb-file-head > div {
  grid-column: 2;
}

body.is-profile .vb-file-head > .vb-ghost {
  grid-column: 1;
  justify-self: start;
}

body.is-profile .vb-file-head h1 {
  font-size: 1.45rem;
  line-height: 1.2;
  text-align: center;
}

body.is-profile .vb-file-head p {
  display: none;
}

body.is-profile .vb-kpis {
  gap: 8px;
  margin: 0 0 10px;
}

body.is-profile .vb-kpi {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52px;
  gap: 8px;
  padding: 8px 12px;
}

body.is-profile .vb-kpi .vb-ico {
  width: 18px;
  height: 18px;
}

body.is-profile .vb-kpi p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
}

body.is-profile .vb-kpi strong {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1;
}

body.is-profile .vb-profile-tabs {
  margin-bottom: 10px;
}

body.is-profile .vb-profile-tabs button {
  min-height: 44px;
  padding: 8px 10px;
  font-size: 0.95rem;
}

body.is-profile #panel-account,
body.is-profile #panel-billing,
body.is-profile #panel-reports,
body.is-profile #panel-company {
  align-items: start;
  justify-items: stretch;
  gap: 10px;
}

body.is-profile #panel-account .vb-file-card,
body.is-profile #panel-billing .vb-file-card {
  height: auto;
}

body.is-profile .vb-file-card {
  padding: 12px 14px;
  text-align: center;
}

body.is-profile .vb-file-card h2,
body.is-profile .vb-file-person,
body.is-profile .vb-file-id,
body.is-profile .vb-account-facts,
body.is-profile .vb-account-facts div,
body.is-profile .vb-file-card label,
body.is-profile .vb-file-note,
body.is-profile .vb-file-since,
body.is-profile #profile-tos,
body.is-profile #pay-summary,
body.is-profile .vb-report-summary,
body.is-profile .vb-balance,
body.is-profile .vb-balance > p {
  justify-content: center;
  text-align: center;
}

body.is-profile .vb-file-card h2 {
  justify-content: center;
  text-align: center;
  margin: 0 0 8px;
  font-size: 1.05rem;
}

body.is-profile .vb-file-person {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  margin: 0 0 10px;
  padding-bottom: 10px;
}

body.is-profile .vb-file-id strong {
  font-size: 1.05rem;
}

body.is-profile .vb-account-facts {
  gap: 8px;
  margin-bottom: 10px;
}

body.is-profile .vb-account-facts div {
  padding: 6px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
}

body.is-profile .vb-account-facts dt {
  width: 100%;
  text-align: center;
}

body.is-profile .vb-account-facts dd {
  width: 100%;
  text-align: center;
  line-height: 1.35;
  word-break: break-word;
  hyphens: auto;
}

body.is-profile #fact-company {
  font-size: clamp(0.88rem, 2.4vw, 1rem);
  font-weight: 700;
}

body.is-profile #profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  align-content: start;
}

body.is-profile #profile-form .vb-file-person,
body.is-profile #profile-form .vb-account-facts,
body.is-profile #profile-form .vb-file-actions,
body.is-profile #profile-form .vb-file-note,
body.is-profile #profile-form #profile-since,
body.is-profile #profile-form #profile-tos,
body.is-profile #profile-form #btn-agreement-pdf {
  grid-column: 1 / -1;
}

body.is-profile #profile-form label,
body.is-profile #password-form label,
body.is-profile .vb-file-card label {
  margin-bottom: 0;
  justify-items: center;
  text-align: center;
}

body.is-profile .vb-file-card input,
body.is-profile .vb-file-card select {
  text-align: center;
}

body.is-profile .vb-file-note,
body.is-profile .vb-file-since,
body.is-profile #profile-tos,
body.is-profile #pay-summary,
body.is-profile .vb-report-summary {
  text-align: center;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

body.is-profile .vb-file-note:empty,
body.is-profile #profile-since:empty,
body.is-profile #profile-tos:empty,
body.is-profile #report-summary:empty {
  display: none;
  margin: 0;
}

body.is-profile #profile-form {
  height: auto;
  align-content: start;
}

body.is-profile #password-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  align-content: start;
  height: auto;
}

body.is-profile #password-form h2,
body.is-profile #password-form .vb-pass-rules,
body.is-profile #password-form .vb-file-note,
body.is-profile #password-form > button {
  grid-column: 1 / -1;
}

body.is-profile #profile-form label,
body.is-profile #password-form label {
  width: 100%;
  justify-items: stretch;
  grid-template-columns: minmax(0, 1fr);
}

body.is-profile #profile-form input,
body.is-profile #password-form input {
  width: 100%;
  min-width: 0;
  max-width: none;
  justify-self: stretch;
}

body.is-profile #panel-billing > .vb-file-card:not(.vb-report) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.is-profile #password-form .vb-pass-rules,
body.is-profile #password-form .vb-pass-rules ul,
body.is-profile #password-form .vb-pass-rules li {
  text-align: center;
}

body.is-profile #password-form .vb-pass-rules ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

body.is-profile #password-form .vb-pass-rules li {
  min-height: 72px;
  margin: 0;
  padding: 6px 4px;
  border: 1px solid #d5e1ee;
  border-radius: 10px;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4px;
  font-size: 0.78rem;
  line-height: 1.25;
}

body.is-profile #password-form > button {
  align-self: stretch;
  width: 100%;
}

body.is-profile #mfa-manage-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

body.is-profile #mfa-manage-form label {
  width: 100%;
  margin: 0;
  justify-items: stretch;
  grid-template-columns: minmax(0, 1fr);
}

body.is-profile #mfa-manage-form .vb-file-note {
  grid-column: 1 / -1;
  margin: 0;
}

body.is-profile #mfa-manage-form .vb-file-note:empty {
  display: none;
}

body.is-profile #mfa-manage-form button {
  min-height: 44px;
  white-space: nowrap;
}

body.is-profile #mfa-manage .mfa-apps {
  margin: 0 0 8px;
}

body.is-profile #mfa-manage .vb-file-note,
body.is-profile #mfa-manage-status {
  margin: 0 0 8px;
}

body.is-profile .vb-file-actions,
body.is-profile #panel-company .vb-company-actions,
body.is-profile #panel-company .vb-staff-actions,
body.is-profile #panel-company .vb-credential .vb-file-actions {
  justify-content: center;
}

body.is-profile .vb-report-scroll {
  max-height: min(46vh, 420px);
}

body.is-profile #panel-company {
  width: 100%;
  margin-inline: 0;
}

@media (max-width: 800px) {
  body.is-profile .vb-file-head {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  body.is-profile .vb-file-head > div,
  body.is-profile .vb-file-head > .vb-ghost {
    grid-column: 1;
    justify-self: center;
  }

  body.is-profile .vb-kpi {
    flex-direction: column;
    align-items: center;
  }

  body.is-profile #profile-form,
  body.is-profile #password-form,
  body.is-profile #mfa-manage-form {
    grid-template-columns: 1fr;
  }

  body.is-profile #mfa-manage-form button {
    width: 100%;
  }

  body.is-profile #password-form .vb-pass-rules ul {
    grid-template-columns: 1fr;
  }

  body.is-profile #password-form .vb-pass-rules li {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.86rem;
  }
}

#mfa-manage[hidden],
#mfa-manage-form[hidden],
#mfa-manage-setup[hidden] {
  display: none;
}

#mfa-manage-setup {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 8px;
}

#mfa-manage-setup p,
#mfa-manage .vb-file-note,
#mfa-manage-status {
  margin: 0 0 8px;
  text-align: center;
}

#mfa-manage-secret {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

#mfa-manage-code,
#mfa-manage-next {
  text-align: center;
  letter-spacing: 0.28em;
  font-weight: 700;
  font-size: 1.15rem;
}

#story[hidden],
#story-resume[hidden] {
  display: none;
}

#story-catch {
  position: fixed;
  inset: 0;
  z-index: 1700;
  background: transparent;
}

#story-ring {
  position: fixed;
  z-index: 1701;
  pointer-events: none;
  border-radius: 16px;
  box-shadow:
    0 0 0 2px #c4a15a,
    0 0 0 7px rgba(196, 161, 90, 0.28),
    0 0 0 9999px rgba(7, 24, 48, 0.62);
  transition: top 180ms ease, left 180ms ease, width 180ms ease, height 180ms ease, border-radius 180ms ease;
}

#story-card {
  position: fixed;
  z-index: 1702;
  width: min(400px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid rgba(12, 58, 102, 0.12);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 22px 48px rgba(8, 32, 64, 0.22);
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  color: #0c3a66;
  transition: top 180ms ease, left 180ms ease;
}

#story-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 3px;
  background: #c4a15a;
  border-radius: 0 0 3px 3px;
}

#story-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
}

#story-card[data-side="before"]::after {
  top: 42px;
  right: -6px;
  border-top: 1px solid rgba(12, 58, 102, 0.12);
  border-right: 1px solid rgba(12, 58, 102, 0.12);
}

#story-card[data-side="after"]::after {
  top: 42px;
  left: -6px;
  border-bottom: 1px solid rgba(12, 58, 102, 0.12);
  border-left: 1px solid rgba(12, 58, 102, 0.12);
}

#story-card[data-side="over"]::after {
  bottom: -6px;
  left: 46px;
  border-bottom: 1px solid rgba(12, 58, 102, 0.12);
  border-left: 1px solid rgba(12, 58, 102, 0.12);
}

#story-card[data-side="under"]::after {
  top: -6px;
  left: 46px;
  border-top: 1px solid rgba(12, 58, 102, 0.12);
  border-right: 1px solid rgba(12, 58, 102, 0.12);
}

#story-card[data-side="dock"]::after {
  display: none;
}

.story-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.story-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.story-meta {
  flex: 1;
  min-width: 0;
}

#story-count {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #5c6b7e;
}

#story-progress {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

#story-progress span {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: #e2e8f0;
}

#story-progress span.is-done {
  background: #0c3a66;
}

#story-progress span.is-now {
  background: #c4a15a;
}

#story-card h2 {
  margin: 0 0 8px;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  color: #072848;
}

html[lang="en"] #story-card h2 {
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: -0.02em;
}

#story-lead {
  margin: 0;
  color: #0c3a66;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.45;
}

#story-body {
  margin: 6px 0 0;
  color: #3d4f63;
  font-size: 0.94rem;
  line-height: 1.55;
}

#story-lead:empty,
#story-body:empty {
  display: none;
}

#story-note {
  margin: 8px 0 0;
}

.story-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.story-actions .vb-ghost,
.story-actions .vb-submit {
  min-height: 42px;
  padding: 0 14px;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-weight: 700;
}

#story-next {
  background: #1d4ed8;
  color: #fff;
}

#story-next:hover {
  background: #0c3a66;
}

#story-later,
#story-back {
  color: #0c3a66;
  background: #fff;
  border: 1px solid #d5e1ee;
}

#story-back {
  margin-inline-start: auto;
}

#story-resume {
  position: fixed;
  z-index: 1690;
  bottom: 16px;
  inset-inline-start: 16px;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid #c4a15a;
  border-radius: 999px;
  background: #0c3a66;
  color: #fff;
  font: 700 0.95rem "IBM Plex Sans", "Sarabun", sans-serif;
  cursor: pointer;
}

#story-card button:focus-visible,
#story-resume:focus-visible {
  outline: 2px solid #0c3a66;
  outline-offset: 2px;
}

@media (max-width: 759px) {
  #story-card[data-side="dock"] {
    right: 12px;
    left: 12px;
    bottom: 76px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  #story-card,
  #story-ring {
    transition: none;
  }
}

.vb-a11y {
  position: fixed;
  z-index: 1800;
  inset-inline-end: calc(16px + env(safe-area-inset-inline-end, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: calc(100vw - 24px);
}

.vb-a11y-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px 0 12px;
  border: 2px solid #d5e6f5;
  border-radius: 999px;
  background: #0c3a66;
  color: #fff;
  box-shadow: 0 12px 28px rgba(8, 32, 64, 0.28);
  font: 700 0.95rem "IBM Plex Sans", "Sarabun", sans-serif;
  cursor: pointer;
}

.vb-a11y-btn svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.vb-a11y-btn:focus-visible,
.vb-a11y-panel button:focus-visible,
.vb-a11y-doc button:focus-visible {
  outline: 3px solid #7eaddb;
  outline-offset: 3px;
}

.vb-a11y-panel,
.vb-a11y-doc-card {
  width: min(360px, calc(100vw - 24px));
  max-height: min(72vh, 640px);
  overflow: auto;
  background: #fff;
  color: #0c3a66;
  border: 1px solid #d5e1ee;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(8, 32, 64, 0.22);
  padding: 16px;
}

.vb-a11y-panel[hidden],
.vb-a11y-doc[hidden] {
  display: none;
}

.vb-a11y-head,
.vb-a11y-doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.vb-a11y-head h2,
.vb-a11y-doc-head h2 {
  margin: 0;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #072848;
}

.vb-a11y-x {
  width: 36px;
  height: 36px;
  border: 1px solid #d5e1ee;
  border-radius: 999px;
  background: #f7faff;
  color: #0c3a66;
  font: 700 1.2rem "IBM Plex Sans", sans-serif;
  cursor: pointer;
}

.vb-a11y-label {
  margin: 12px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.vb-a11y-step,
.vb-a11y-modes {
  display: flex;
  gap: 6px;
}

.vb-a11y-step {
  align-items: center;
}

.vb-a11y-step button,
.vb-a11y-modes button,
.vb-a11y-reset,
.vb-a11y-link {
  min-height: 40px;
  border: 1px solid #d5e1ee;
  border-radius: 999px;
  background: #f7faff;
  color: #0c3a66;
  font: 650 0.86rem "IBM Plex Sans", "Sarabun", sans-serif;
  cursor: pointer;
}

.vb-a11y-step button {
  width: 40px;
  font-size: 1.2rem;
}

.vb-a11y-step span {
  flex: 1;
  text-align: center;
  font-weight: 700;
}

.vb-a11y-modes button {
  flex: 1;
  padding: 0 8px;
}

.vb-a11y-modes button[aria-checked="true"],
.vb-a11y-step button:hover,
.vb-a11y-modes button:hover,
.vb-a11y-reset:hover,
.vb-a11y-link:hover {
  border-color: #0c3a66;
}

.vb-a11y-modes button[aria-checked="true"] {
  background: #0c3a66;
  color: #fff;
}

.vb-a11y-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 8px 10px 8px 12px;
  border: 1px solid #d5e1ee;
  border-radius: 12px;
  background: #f7faff;
  color: #0c3a66;
  font: 650 0.9rem "IBM Plex Sans", "Sarabun", sans-serif;
  text-align: start;
  cursor: pointer;
}

.vb-a11y-switch {
  width: 36px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d5e1ee;
  position: relative;
}

.vb-a11y-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.vb-a11y-toggle[aria-pressed="true"] {
  border-color: #0b6b42;
}

.vb-a11y-toggle[aria-pressed="true"] .vb-a11y-switch {
  background: #128a58;
}

.vb-a11y-toggle[aria-pressed="true"] .vb-a11y-switch::after {
  inset-inline-start: 17px;
}

.vb-a11y-reset,
.vb-a11y-link {
  width: 100%;
  margin-top: 8px;
}

.vb-a11y-link {
  background: transparent;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.vb-a11y-doc {
  position: fixed;
  inset: 0;
  z-index: 1820;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(10, 28, 68, 0.42);
}

.vb-a11y-doc-card {
  width: min(640px, 100%);
  max-height: min(86vh, 760px);
}

.vb-a11y-doc-card p {
  margin: 0 0 12px;
  color: #1e293b;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 0.98rem;
  line-height: 1.65;
}

.vb-a11y-doc-card .vb-a11y-updated {
  color: #334155;
  font-weight: 700;
}

html.vb-a11y-text-1 { font-size: 112.5%; }
html.vb-a11y-text-2 { font-size: 125%; }
html.vb-a11y-text-3 { font-size: 150%; }

html.vb-a11y-contrast {
  --ink: #0a0a0a;
  --slate: #1a1a1a;
  --text: #0a0a0a;
  --text-muted: #1a1a1a;
  --paper: #fff;
}

html.vb-a11y-contrast body {
  background: #fff;
  color: #111;
}

html.vb-a11y-contrast :where(.vb-file-note, .dash-await-hint, .vb-country p, .vb-home p) {
  color: #1a1a1a;
}

html.vb-a11y-contrast a,
html.vb-a11y-links a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

html.vb-a11y-links a {
  background: #fff4bf;
  outline: 2px solid #111;
  color: #04284a;
}

html.vb-a11y-font body,
html.vb-a11y-font button,
html.vb-a11y-font input,
html.vb-a11y-font select,
html.vb-a11y-font textarea {
  font-family: "Atkinson Hyperlegible", "IBM Plex Sans", Arial, sans-serif;
}

html.vb-a11y-leading :where(p, li, label, h1, h2, h3, td, th) {
  line-height: 1.9;
}

html.vb-a11y-tracking body {
  letter-spacing: 0.04em;
  word-spacing: 0.08em;
}

html.vb-a11y-focus :focus-visible {
  outline: 3px solid #f5c518 !important;
  outline-offset: 3px !important;
}

html.vb-a11y-motion *,
html.vb-a11y-motion *::before,
html.vb-a11y-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html.vb-a11y-cursor,
html.vb-a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M6 3 L6 26 L12 20 L18 29 L22 27 L16 18 L24 18 Z' fill='%230c3a66' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 4 2, auto;
}

html.vb-a11y-gray > body > :not(.vb-a11y):not(.vb-a11y-doc):not(.vb-wa) {
  filter: grayscale(1);
}

html.vb-a11y-dark > body > :not(.vb-a11y):not(.vb-a11y-doc):not(.vb-wa) {
  filter: invert(1) hue-rotate(180deg);
}

html.vb-a11y-dark.vb-a11y-gray > body > :not(.vb-a11y):not(.vb-a11y-doc):not(.vb-wa) {
  filter: invert(1) hue-rotate(180deg) grayscale(1);
}

html.vb-a11y-dark > body > :not(.vb-a11y):not(.vb-a11y-doc):not(.vb-wa) :is(img, video) {
  filter: invert(1) hue-rotate(180deg);
}

.vb-wa {
  position: fixed;
  z-index: 1800;
  inset-inline-start: calc(16px + env(safe-area-inset-inline-start, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px rgba(8, 32, 64, 0.28);
  text-decoration: none;
}

.vb-wa svg {
  width: 30px;
  height: 30px;
}

.vb-wa[aria-disabled="true"] {
  cursor: default;
}

.vb-wa:not([aria-disabled="true"]):hover {
  background: #1ebe5d;
}

.vb-wa:focus-visible {
  outline: 3px solid #0c3a66;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .vb-a11y-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .vb-a11y-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }
}

body.is-campaigns .vb-file {
  width: min(1080px, calc(100% - 36px));
}

body.is-campaigns .vb-file-head,
.cmp-detail-head,
.cmp-brand {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
}

body.is-campaigns .vb-file-head > div,
.cmp-detail-head h2,
.cmp-brand svg {
  grid-column: 2;
  margin: 0;
}

body.is-campaigns .vb-file-head > .vb-ghost,
.cmp-detail-head .vb-ghost {
  grid-column: 1;
  justify-self: start;
}

body.is-campaigns .vb-file-head h1,
.cmp-page h1,
.cmp-page h2,
.cmp-create h2,
.cmp-detail h2 {
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  color: #0c3a66;
  text-align: center;
}

.cmp-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background-color: #d3e9f8;
  background-image: url("visa-buddy-hero-bg.png?v=2");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  color: #102844;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
}

.cmp-sheet,
.cmp-create,
.cmp-detail,
.cmp-list {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.cmp-sheet {
  padding: 28px 0 48px;
}

.cmp-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.cmp-brand img,
.cmp-brand svg {
  grid-column: auto;
}

.cmp-list {
  width: min(1080px, 100%);
}

.cmp-list > .vb-submit {
  display: block;
  margin: 0 auto 14px;
}

.cmp-brand img {
  width: 64px;
  height: 64px;
  grid-column: 2;
  object-fit: contain;
}

.cmp-brand svg {
  width: 72px;
  height: 36px;
  grid-column: 2;
}

.cmp-hello,
.cmp-lead,
.cmp-page h1 {
  text-align: center;
}

.cmp-hello {
  margin: 8px 0 0;
  color: #0c3a66;
  font-weight: 600;
}

.cmp-lead {
  color: #23486f;
  line-height: 1.45;
}

.cmp-stats,
.cmp-trip,
.cmp-grid,
.cmp-cards,
.cmp-person {
  display: grid;
  gap: 12px;
}

.cmp-stats,
.cmp-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
}

.cmp-trip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 18px;
}

.cmp-stat,
.cmp-trip div,
.cmp-card,
.cmp-row,
.cmp-create,
.cmp-person {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 58, 102, 0.1);
  border-radius: 16px;
}

.cmp-stat,
.cmp-trip div,
.cmp-card {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 12px;
  color: #0c3a66;
}

.cmp-stat strong,
.cmp-trip strong,
.cmp-card strong,
.cmp-person strong {
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.cmp-trip .cmp-span,
.cmp-grid .cmp-span,
.cmp-person .cmp-span {
  grid-column: 1 / -1;
}

.cmp-trip .cmp-span {
  min-height: 0;
  background: transparent;
  border: 0;
  color: #23486f;
}

.cmp-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.cmp-create,
.cmp-row,
.cmp-person {
  padding: 18px 16px 20px;
}

.cmp-create h2,
.cmp-list .vb-submit {
  text-align: center;
}

.cmp-grid label,
.cmp-file,
.cmp-actions,
.cmp-check,
.cmp-scan {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: #0c3a66;
  font-weight: 600;
}

.cmp-grid input:not([type="hidden"]),
.cmp-grid select,
.cmp-file input,
.cmp-actions button,
.cmp-create .vb-submit,
.cmp-list > .vb-submit,
.cmp-row .vb-ghost,
.cmp-check {
  width: min(100%, 420px);
  min-height: 44px;
}

.cmp-grid input:not([type="hidden"]),
.cmp-grid select,
.cmp-file input {
  border: 1px solid rgba(12, 58, 102, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  font: 500 1rem/1.3 "IBM Plex Sans", "Sarabun", sans-serif;
  color: #102844;
  background: #fff;
}

.cmp-hotel-search {
  position: relative;
  z-index: 6;
  width: min(100%, 420px);
}

.cmp-hotel-search input {
  width: 100%;
}

.cmp-hotel-list {
  position: absolute;
  z-index: 8;
  inset-inline: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  direction: ltr;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(12, 58, 102, 0.16);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(12, 58, 102, 0.12);
}

.cmp-hotel-list button {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  text-align: left;
  font: 500 0.95rem/1.35 "IBM Plex Sans", "Sarabun", sans-serif;
  color: #0c3a66;
  cursor: pointer;
}

.cmp-hotel-list button small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  color: #23486f;
}

.cmp-hotel-list button.is-on,
.cmp-hotel-list button:hover {
  background: #eef5fb;
}

.cmp-hotel-picked {
  margin: 0;
  max-width: none;
  color: #0b6b42;
  font-weight: 600;
  direction: ltr;
  text-align: left;
}

.cmp-hotel-status {
  margin: 0;
  padding: 10px 12px;
  color: #23486f;
  font: 500 0.95rem/1.35 "IBM Plex Sans", "Sarabun", sans-serif;
}

#campaign-create,
#campaign-create .cmp-grid,
#campaign-create .cmp-hotel {
  overflow: visible;
}

#campaign-create .cmp-hotel {
  position: relative;
  z-index: 4;
}

#cmp-hotel {
  direction: ltr;
  text-align: left;
}

#campaign-create {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: min(760px, 100%);
  margin-inline: auto;
}

#campaign-create h2,
#campaign-create h3,
#campaign-create .cmp-grid {
  margin: 0;
}

#campaign-create .cmp-grid label,
#campaign-create .cmp-file,
#campaign-create .cmp-file label {
  align-items: stretch;
  width: 100%;
}

#campaign-create .cmp-grid input:not([type="hidden"]),
#campaign-create .cmp-grid select,
#campaign-create .cmp-hotel-search,
#campaign-create .cmp-file-face,
#campaign-create .vb-submit,
#campaign-create .vb-ghost {
  width: 100%;
  max-width: none;
}

#campaign-create .cmp-hotel-picked {
  max-width: none;
}

#campaign-create input:-webkit-autofill,
#campaign-create input:-webkit-autofill:hover,
#campaign-create input:-webkit-autofill:focus,
#campaign-create select:-webkit-autofill {
  -webkit-text-fill-color: #102844;
  caret-color: #102844;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-out 0s;
}

#campaign-create input[type="date"],
#campaign-create select {
  position: relative;
  padding-inline: 40px;
  text-align: center;
}

#campaign-create select {
  text-align-last: center;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6 L8 10.5 L12.5 6' fill='none' stroke='%230c3a66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

#campaign-create input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 12px;
  margin: 0;
  cursor: pointer;
}

#campaign-create .cmp-file {
  margin-top: 0;
  gap: 14px;
}

#campaign-create .cmp-file-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 40px;
  border: 1px solid rgba(12, 58, 102, 0.18);
  border-radius: 12px;
  background: #fff;
  color: #102844;
  font: 500 1rem/1.3 "IBM Plex Sans", "Sarabun", sans-serif;
  text-align: center;
}

#campaign-create .cmp-file-face:not(:has(.cmp-file-name:not(:empty)))::before {
  content: "";
  width: 18px;
  height: 18px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c3a66' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V5'/%3E%3Cpath d='M8 8.5 12 4.5l4 4'/%3E%3Cpath d='M5 15.5V18a1.5 1.5 0 0 0 1.5 1.5h11A1.5 1.5 0 0 0 19 18v-2.5'/%3E%3C/svg%3E");
}

#campaign-create .cmp-file-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.cmp-file,
.cmp-actions,
.cmp-check,
.cmp-scan {
  margin-top: 14px;
}

.cmp-actions {
  flex-direction: row;
  justify-content: center;
}

.cmp-scan .dropzone {
  width: min(100%, 420px);
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cmp-scan input {
  max-width: 100%;
}

.cmp-cards {
  width: min(1080px, 100%);
}

.cmp-card {
  width: 100%;
  border: 1px solid rgba(12, 58, 102, 0.1);
  cursor: pointer;
  font: 600 1rem/1.3 "IBM Plex Sans", "Sarabun", sans-serif;
}

.cmp-card:focus-visible,
.cmp-grid input:focus-visible,
.cmp-grid select:focus-visible,
.cmp-page button:focus-visible,
body.is-campaigns button:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

.cmp-row {
  margin: 12px 0;
}

.cmp-row-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.cmp-row em {
  font-style: normal;
  color: #0c3a66;
}

.cmp-row em.is-confirmed {
  color: #0b6b42;
}

.cmp-detail-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px;
  text-align: center;
}

.cmp-detail-actions .vb-submit {
  width: min(100%, 420px);
  min-height: 44px;
}

.cmp-detail-actions .vb-submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.cmp-detail-actions p {
  margin: 0;
  max-width: 420px;
  color: #23486f;
  font-weight: 500;
}

.cmp-person {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.cmp-person p {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.cmp-check {
  flex-direction: row;
  justify-content: center;
  font-weight: 500;
}

.cmp-check input {
  width: 22px;
  height: 22px;
  min-height: 22px;
}

#pf-confirm:disabled {
  opacity: 0.55;
}

.cmp-page .cmp-sheet {
  width: min(720px, calc(100% - 28px));
  padding: 16px 0 32px;
}

.cmp-page .cmp-brand {
  margin-bottom: 2px;
}

.cmp-page .cmp-brand img {
  width: 52px;
  height: 52px;
}

.cmp-page h1 {
  margin: 2px 0 0;
  font-size: 1.35rem;
}

.cmp-page .cmp-hello,
.cmp-page .cmp-lead {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.cmp-page .cmp-trip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(12, 58, 102, 0.1);
  border-radius: 16px;
}

.cmp-page .cmp-trip div {
  min-height: 0;
  gap: 2px;
  padding: 8px 6px;
  background: #f4f9fd;
  border: 0;
  border-radius: 12px;
}

.cmp-page .cmp-trip span {
  font-size: 0.78rem;
  font-weight: 600;
}

.cmp-page .cmp-trip strong {
  font-size: 1rem;
}

.cmp-page .cmp-trip small {
  display: block;
  max-width: 100%;
  font-size: 0.78rem;
  font-weight: 500;
  color: #23486f;
}

.cmp-page #pf-form,
.cmp-page #pf-review,
.cmp-page #pf-done {
  margin-top: 12px;
  padding: 14px 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(12, 58, 102, 0.1);
  border-radius: 16px;
}

.cmp-page #pf-form,
.cmp-page #pf-review {
  padding-bottom: 108px;
}

.cmp-page .cmp-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 0;
}

.cmp-page .cmp-grid label,
.cmp-page .cmp-check {
  align-items: stretch;
  width: 100%;
  gap: 4px;
  font-size: 0.92rem;
  scroll-margin-bottom: 130px;
}

.cmp-page .cmp-grid input:not([type="hidden"]),
.cmp-page .cmp-grid select,
.cmp-page #pf-form .vb-submit,
.cmp-page .cmp-actions button {
  width: 100%;
  max-width: none;
  min-height: 42px;
}

.cmp-page input:-webkit-autofill,
.cmp-page input:-webkit-autofill:hover,
.cmp-page input:-webkit-autofill:focus,
.cmp-page select:-webkit-autofill {
  -webkit-text-fill-color: #102844;
  caret-color: #102844;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-out 0s;
}

.cmp-page input[type="date"],
.cmp-page select {
  position: relative;
  padding-inline: 36px;
  text-align: center;
}

.cmp-page select {
  text-align-last: center;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6 L8 10.5 L12.5 6' fill='none' stroke='%230c3a66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.cmp-page input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 10px;
  margin: 0;
  cursor: pointer;
}

.cmp-page #pf-form .vb-submit {
  margin-top: 0;
}

.cmp-page .cmp-sendbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid rgba(12, 58, 102, 0.12);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 28px rgba(12, 58, 102, 0.14);
}

.cmp-page .cmp-sendbar .vb-submit,
.cmp-page .cmp-actions .vb-submit {
  min-height: 48px;
  border-radius: 12px;
  background: #0c3a66;
  color: #fff;
  font: 700 1.05rem/1 "IBM Plex Sans", "Sarabun", sans-serif;
}

.cmp-page .cmp-missing {
  margin: 0;
  text-align: center;
  color: #8b1a1a;
  font: 600 0.92rem/1.4 "IBM Plex Sans", "Sarabun", sans-serif;
}

.cmp-page .cmp-grid label.is-bad input,
.cmp-page .cmp-grid label.is-bad select {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.cmp-page .cmp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: min(720px, 100%);
  margin-top: 12px;
}

.cmp-page .cmp-check {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.cmp-page .cmp-person {
  gap: 8px;
  margin-top: 10px;
  background: transparent;
  border: 0;
  padding: 0;
}

.cmp-page .cmp-person p {
  min-height: 0;
  margin: 0;
  padding: 8px 6px;
  background: #f4f9fd;
  border-radius: 12px;
}

@media (max-width: 800px) {
  .cmp-stats,
  .cmp-trip,
  .cmp-cards,
  .cmp-grid,
  .cmp-person,
  .cmp-page .cmp-trip,
  .cmp-page .cmp-grid,
  .cmp-page .cmp-actions,
  .cmp-row-top,
  .cmp-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

#session-restore {
  display: none;
}

.vb-gate {
  position: fixed;
  inset: 0;
  z-index: 3900;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 24, 42, 0.28);
  backdrop-filter: blur(4px);
}

.vb-gate[hidden] {
  display: none !important;
}

.vb-gate-card {
  width: min(420px, 100%);
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid rgba(8, 40, 72, 0.12);
  background: #fff;
  box-shadow: 0 18px 48px rgba(8, 40, 72, 0.14);
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: #0c3a66;
  font: 700 1.08rem/1.4 "IBM Plex Sans", "Sarabun", sans-serif;
}

.vb-gate-card p {
  margin: 0;
}

.vb-wait {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}

.vb-wait-mark {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  object-fit: contain;
  animation: vb-wait-float 2.2s ease-in-out infinite;
}

.vb-wait-orbit {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px dashed rgba(12, 58, 102, 0.35);
  animation: vb-wait-spin 7s linear infinite;
}

.vb-wait-orbit::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #1a8fd1;
  box-shadow: 0 0 0 5px rgba(26, 143, 209, 0.18);
}

.vb-wait-screen {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  min-height: 280px;
  margin: 12px auto;
  text-align: center;
  color: #0c3a66;
  font: 700 1.08rem/1.4 "IBM Plex Sans", "Sarabun", sans-serif;
}

.vb-wait-screen[hidden] {
  display: none;
}

#job-log-wait.vb-wait-screen {
  min-height: 140px;
}

.vb-wait-screen p {
  margin: 0;
}

.group-batch-modal-card.is-settled .vb-wait-mark,
.group-batch-modal-card.is-settled .vb-wait-orbit,
.group-batch-modal-card.is-blocked .vb-wait-mark,
.group-batch-modal-card.is-blocked .vb-wait-orbit {
  animation: none;
}

@keyframes vb-wait-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes vb-wait-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .vb-wait-mark,
  .vb-wait-orbit {
    animation: none;
  }
}

html.is-restoring body > :not(#session-restore) {
  visibility: hidden;
}

html.is-restoring #session-restore {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 5000;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: #d3e9f8 url("visa-buddy-hero-bg.png?v=2") center top / cover no-repeat;
  color: #0c3a66;
  font: 700 1.2rem/1.4 "IBM Plex Sans", "Sarabun", sans-serif;
}

#session-restore p {
  margin: 0;
}

body.is-filing .filing-collect .cmp-edit-form {
  display: grid;
  gap: 12px;
  margin: 12px 0 8px;
}

body.is-filing .filing-collect .cmp-edit-form .cmp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

body.is-filing .filing-collect .cmp-edit-form label {
  display: grid;
  gap: 4px;
  color: #23486f;
  font: 600 0.88rem/1.3 "IBM Plex Sans", "Sarabun", sans-serif;
}

body.is-filing .filing-collect .cmp-edit-form input,
body.is-filing .filing-collect .cmp-edit-form select {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(12, 58, 102, 0.18);
  border-radius: 12px;
  background: #fff;
  color: #102844;
  font: 500 1rem/1.3 "IBM Plex Sans", "Sarabun", sans-serif;
}

@media (max-width: 800px) {
  body.is-filing .filing-collect .cmp-edit-form .cmp-grid {
    grid-template-columns: 1fr;
  }
}

.vb-contact {
  width: min(720px, calc(100% - 32px));
  margin: 28px auto 48px;
}

.vb-contact-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 28px 22px 24px;
  background: #fff;
  border: 1px solid rgba(12, 58, 102, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(12, 58, 102, 0.08);
}

.vb-contact-card h1,
.vb-contact-card > p {
  margin: 0;
  text-align: center;
  color: #0c3a66;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
}

.vb-contact-card h1 {
  font-size: 1.6rem;
  font-weight: 650;
}

.vb-contact-card > p {
  color: #23486f;
  line-height: 1.45;
}

.vb-contact-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vb-contact-card label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  color: #0c3a66;
  font-weight: 600;
  text-align: center;
}

.vb-contact-card input,
.vb-contact-card textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c5d4e4;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #102844;
  font: 500 1rem/1.4 "IBM Plex Sans", "Sarabun", sans-serif;
  text-align: start;
}

.vb-contact-card textarea {
  resize: vertical;
  min-height: 96px;
}

.vb-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  background: #128c7e;
  color: #fff;
  font: 650 1rem/1 "IBM Plex Sans", "Sarabun", sans-serif;
  text-decoration: none;
}

.vb-whatsapp[hidden] {
  display: none;
}

.vb-whatsapp:hover {
  background: #0e756a;
}

.vb-about {
  width: min(42rem, calc(100% - 32px));
  margin: 28px auto 56px;
}

.vb-about-sheet {
  padding: 32px 28px 28px;
  background: #fff;
  border: 1px solid rgba(12, 58, 102, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(12, 58, 102, 0.08);
}

.vb-about h1,
.vb-about h2,
.vb-about p,
.vb-about li {
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
}

.vb-about h1 {
  margin: 0 0 12px;
  color: #0c3a66;
  font-size: 1.7rem;
  font-weight: 650;
  line-height: 1.25;
}

.vb-about-line {
  margin: 0 0 18px;
  color: #0c3a66;
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.5;
}

.vb-about p {
  margin: 0 0 14px;
  color: #1c3d62;
  font-size: 1.02rem;
  font-weight: 450;
  line-height: 1.7;
}

.vb-about h2 {
  margin: 22px 0 8px;
  color: #0c3a66;
  font-size: 1.16rem;
  font-weight: 650;
  line-height: 1.3;
}

.vb-about ul {
  margin: 0 0 8px;
  padding: 0;
  padding-inline-start: 1.15em;
  color: #1c3d62;
}

.vb-about li {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.55;
}

.vb-about li:last-child {
  margin-bottom: 0;
}

html[lang="en"] .vb-about h1,
html[lang="en"] .vb-about h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
}

@media (max-width: 640px) {
  .vb-about-sheet {
    padding: 22px 16px 20px;
  }

  .vb-about h1 {
    font-size: 1.45rem;
  }

  .vb-about-line {
    font-size: 1.08rem;
  }
}

.vb-issued-code {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef5fb;
  color: #0c3a66;
  font: 700 1.15rem/1.3 "IBM Plex Sans", sans-serif;
  letter-spacing: 0.04em;
  text-align: center;
}

#signup-gate .vb-ghost {
  width: 100%;
  margin-top: 8px;
}

body.is-ops {
  background: #d3e9f8;
}

body.is-ops .vb-a11y,
body.is-ops .vb-a11y-doc,
body.is-ops .vb-wa {
  display: none !important;
}

body.is-ops .vb-nav {
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(12, 58, 102, 0.08);
  backdrop-filter: blur(12px);
}

body.is-ops .vb-nav-links,
body.is-ops .vb-home,
body.is-ops #view-about,
body.is-ops #view-contact,
body.is-ops #account-view,
body.is-ops #group-workspace,
body.is-ops .vb-foot {
  display: none !important;
}

#ops-sign-out[hidden] {
  display: none !important;
}

body.is-ops #ops-sign-out {
  margin-inline-start: auto;
}

#admin-desk {
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 48px;
  color: #0c3a66;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
}

.ops-switch:empty {
  display: none;
}

.ops-board {
  display: grid;
  gap: 14px;
}

.ops-tools {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: start;
}

#admin-desk[hidden] {
  display: none !important;
}

.ops-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(12, 58, 102, 0.1);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(12, 58, 102, 0.06);
}

.ops-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0c3a66;
  font: 600 1.05rem/1 "IBM Plex Sans", "Sarabun", sans-serif;
  cursor: pointer;
}

.ops-switch button[aria-selected="true"] {
  background: #0c3a66;
  color: #fff;
}

.ops-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-inline-start: 8px;
  padding: 0 5px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font: 700 0.78rem/1 "IBM Plex Sans", "Sarabun", sans-serif;
}

.ops-switch button[aria-selected="true"] .ops-count {
  background: #fff;
  color: #0c3a66;
}

.ops-focus {
  width: min(860px, 100%);
  margin-inline: auto;
}

.ops-reach {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e4edf5;
}

.ops-reach h3,
.ops-reach .ops-lead,
.ops-reach .ops-price-note {
  grid-column: 1 / -1;
}

.ops-switch button:focus-visible,
.ops-list button:focus-visible,
.ops-invite button:focus-visible,
.ops-price button:focus-visible,
.ops-rate button:focus-visible,
.ops-rate input:focus-visible,
.ops-rate select:focus-visible,
.ops-find input:focus-visible,
#ops-sign-out:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

.ops-split {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ops-side {
  min-width: 0;
}

.ops-find {
  margin: 0 0 8px;
}

.ops-find label,
.ops-rate label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #0c3a66;
  font-weight: 600;
}

.ops-list {
  display: flex;
  flex-direction: column;
  max-height: min(52vh, 480px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(12, 58, 102, 0.1);
  border-radius: 14px;
}

.ops-list button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  height: auto;
  min-height: 52px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #d5e0ec;
  background: #fff;
  color: #0c3a66;
  font: 600 0.95rem/1.3 "IBM Plex Sans", "Sarabun", sans-serif;
  text-align: start;
  cursor: pointer;
}

.ops-list button span {
  color: #3d5d80;
  font: 500 0.8rem/1.3 "IBM Plex Sans", "Sarabun", sans-serif;
}

.ops-list button[aria-current="true"] span {
  color: #d5e4f4;
}

.ops-side.ops-sheet .ops-list {
  background: transparent;
  border: 0;
  border-radius: 12px;
}

.ops-list button:last-child {
  border-bottom: 0;
}

.ops-list button[aria-current="true"] {
  background: #0c3a66;
  color: #fff;
}

.ops-sheet {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(12, 58, 102, 0.1);
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: 0 12px 30px rgba(12, 58, 102, 0.06);
}

.ops-sheet h2,
.ops-sheet h3 {
  margin: 0 0 8px;
  color: #0c3a66;
  font-family: "IBM Plex Sans", "Sarabun", sans-serif;
  font-weight: 700;
  text-align: start;
}

.ops-sheet h2 {
  font-size: 1.45rem;
}

.ops-sheet h3 {
  margin-top: 18px;
  font-size: 1.05rem;
}

.ops-facts,
.ops-lead,
.ops-empty,
.ops-price-note {
  margin: 0 0 10px;
  color: #23486f;
  font: 400 0.98rem/1.45 "IBM Plex Sans", "Sarabun", sans-serif;
  text-align: start;
}

.ops-scroll {
  overflow: auto;
  max-height: min(34vh, 280px);
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  font: 400 0.95rem/1.4 "IBM Plex Sans", "Sarabun", sans-serif;
}

.ops-table th,
.ops-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4edf5;
  text-align: start;
  vertical-align: top;
}

.ops-table th {
  color: #23486f;
  font-weight: 600;
}

.ops-code {
  direction: ltr;
  unicode-bidi: isolate;
}

.ops-prices {
  display: flex;
  flex-direction: column;
}

.ops-price {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) minmax(120px, 0.8fr) minmax(140px, 0.7fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e4edf5;
}

.ops-price-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ops-price-name strong {
  font-weight: 700;
}

.ops-price-name span,
.ops-price-note {
  color: #23486f;
}

.ops-price .ops-facts,
.ops-price .ops-price-note {
  grid-column: 1 / -1;
}

.ops-rate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) auto;
  gap: 10px;
  align-items: end;
  max-width: 760px;
}

.ops-rate .ops-price-name,
.ops-rate .ops-price-note {
  grid-column: 1 / -1;
}

.ops-rate .vb-submit {
  min-height: 44px;
  padding: 0 16px;
  white-space: nowrap;
}

.ops-override {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid #e4edf5;
}

.ops-override summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #0c3a66;
  font-weight: 700;
  cursor: pointer;
}

.ops-price input,
.ops-rate input,
.ops-rate select,
.ops-find input,
.ops-invite-form input,
.ops-invite textarea,
.ops-reach input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #d5e0ec;
  border-radius: 12px;
  background: #fff;
  color: #0c3a66;
  font: 400 1rem/1.4 "IBM Plex Sans", "Sarabun", sans-serif;
}

.ops-invite textarea {
  min-height: 140px;
  margin: 8px 0 10px;
  resize: vertical;
}

.ops-invite-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
  margin-bottom: 8px;
}

.ops-invite-form .vb-submit,
.ops-invite-form .ops-price-note {
  grid-column: 1 / -1;
  justify-self: stretch;
}

.ops-draft {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.ops-draft .vb-ghost {
  justify-self: start;
}

.ops-invite-form label,
.ops-reach label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #0c3a66;
  font-weight: 600;
}

.ops-invite .vb-ghost,
.ops-price .vb-submit,
.ops-invite .vb-submit,
#ops-sign-out {
  min-height: 44px;
  padding: 0 16px;
}

.ops-security {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(12, 58, 102, 0.1);
  border-radius: 18px;
  padding: 10px 14px 12px;
  box-shadow: 0 12px 30px rgba(12, 58, 102, 0.06);
}

.ops-security summary {
  cursor: pointer;
  color: #0c3a66;
  font-weight: 700;
}

@media (max-width: 800px) {
  .ops-split,
  .ops-tools,
  .ops-price,
  .ops-rate,
  .ops-invite-form,
  .ops-reach {
    grid-template-columns: 1fr;
  }
}

body.is-profile #panel-billing,
body.is-profile #panel-company {
  width: min(760px, 100%);
  margin-inline: auto;
}

body.is-profile #panel-billing {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

body.is-profile #panel-billing .vb-report {
  grid-column: 1 / -1;
}

body.is-profile #pay-update {
  width: 100%;
  max-width: none;
  margin-top: 8px;
}

body.is-filing .filing-collect #campaign-list,
body.is-filing .filing-collect #campaign-create,
body.is-filing .filing-collect #campaign-detail,
body.is-filing .filing-collect #campaign-note {
  width: 100%;
  margin-inline: 0;
}

body.is-filing .filing-collect .cmp-cards,
body.is-profile .cmp-cards {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  width: 100%;
  margin: 0;
}

body.is-filing .filing-collect .cmp-list > .vb-submit,
body.is-profile .cmp-list > .vb-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
}

body.is-profile .cmp-history-title {
  margin: 0 0 8px;
  text-align: center;
  color: #0c3a66;
  font: 700 1.05rem/1.3 "IBM Plex Sans", "Sarabun", sans-serif;
}

body.is-profile .cmp-lead {
  text-align: center;
  margin-inline: auto;
}

body.is-profile .cmp-row-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.is-profile #panel-company .vb-staff {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.is-profile #panel-company .vb-staff label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

body.is-profile #panel-company .vb-staff input,
body.is-profile #panel-company .vb-staff select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.is-profile .cmp-trip > div:nth-child(7) {
  grid-column: 1 / -1;
}

body.is-profile .cmp-row > .vb-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

body.is-profile .cmp-person > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

body.is-profile .vb-report-filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 800px) {
  body.is-profile #panel-billing,
  body.is-profile .cmp-cards,
  body.is-filing .filing-collect .cmp-cards,
  body.is-profile #panel-company .vb-staff,
  body.is-profile .vb-report-filters,
  body.is-profile .cmp-row-top,
  body.is-filing .filing-collect .cmp-row-top {
    grid-template-columns: 1fr;
  }
}

body.is-profile #panel-account {
  align-items: stretch;
}

body.is-profile #panel-account > #profile-form,
body.is-profile #panel-account > .vb-account-side {
  height: 100%;
  min-height: 100%;
}

body.is-profile #panel-account > #profile-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.is-profile #panel-account .vb-account-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

body.is-profile #panel-account > #profile-form > .vb-file-actions {
  margin-top: auto;
}

body.is-profile #panel-account #mfa-manage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: auto;
}

body.is-profile #panel-account #mfa-manage-form {
  margin-top: auto;
}

@media (max-width: 800px) {
  body.is-profile #panel-account > #profile-form,
  body.is-profile #panel-account > .vb-account-side,
  body.is-profile #panel-account #mfa-manage {
    height: auto;
    min-height: 0;
    flex: none;
  }

  body.is-profile #panel-account .vb-account-fields {
    grid-template-columns: 1fr;
  }

  body.is-profile #panel-account > #profile-form > .vb-file-actions,
  body.is-profile #panel-account #mfa-manage-form {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ops-switch button,
  .ops-list button {
    transition: none;
  }
}

.vb-charge-now {
  margin: 0 0 8px;
  color: #0c3a66;
  font: 700 1.2rem/1.45 "IBM Plex Sans", "Sarabun", sans-serif;
  text-align: center;
}

@media (max-width: 760px) {
  .vb-about-sheet,
  .vb-contact-card {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}


