:root {
  --hgqb-bg: #07111f;
  --hgqb-bg-2: #0a182c;
  --hgqb-surface: rgba(9, 20, 36, 0.88);
  --hgqb-surface-2: rgba(11, 27, 49, 0.94);
  --hgqb-surface-soft: rgba(18, 37, 65, 0.72);
  --hgqb-line: rgba(86, 157, 255, 0.18);
  --hgqb-line-strong: rgba(86, 157, 255, 0.34);
  --hgqb-text: #eef6ff;
  --hgqb-muted: #93abc8;
  --hgqb-primary: #43b6ff;
  --hgqb-primary-2: #2b7fff;
  --hgqb-primary-soft: rgba(67, 182, 255, 0.14);
  --hgqb-success: #5be49b;
  --hgqb-warning: #ffbf5f;
  --hgqb-danger: #ff7d8f;
  --hgqb-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --hgqb-glow: 0 0 0 1px rgba(67, 182, 255, 0.08), 0 0 20px rgba(67, 182, 255, 0.08);
  --hgqb-radius: 22px;
}

body.wp-admin,
.hgqb-public-shell {
  background:
    radial-gradient(circle at top right, rgba(34, 163, 255, 0.18), transparent 24%),
    radial-gradient(circle at top left, rgba(0, 214, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #06101d 0%, #091425 100%);
}

body.wp-admin #wpcontent {
  background: transparent;
}

body.wp-admin .wrap.hgqb-wrap,
.hgqb-front-wrap {
  max-width: 1420px;
  position: relative;
  z-index: 1;
}

body.wp-admin .hgqb-wrap::before,
.hgqb-front-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 129, 188, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 129, 188, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .45;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 95%);
}

body.wp-admin .hgqb-wrap,
.hgqb-public-shell {
  color: var(--hgqb-text);
}

body.wp-admin .notice,
.hgqb-front-notice {
  border-radius: 16px;
  box-shadow: var(--hgqb-shadow);
}

body.wp-admin .notice p,
body.wp-admin .notice li {
  color: #11243c;
}

body.wp-admin .notice.notice-success {
  border-left-color: #0fb974;
}

body.wp-admin .notice.notice-error {
  border-left-color: #d94a63;
}

body.wp-admin .wp-header-end {
  display: none;
}

.hgqb-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
}

.hgqb-heading {
  margin: 0 0 8px !important;
  font-size: clamp(30px, 3vw, 38px) !important;
  line-height: 1.06 !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: var(--hgqb-text);
}

.hgqb-subtitle {
  margin: 0;
  color: var(--hgqb-muted);
  font-size: 14px;
  max-width: 760px;
}

.hgqb-topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hgqb-admin-shell .button,
.hgqb-public-shell .button,
.hgqb-admin-shell .page-title-action,
.hgqb-public-shell .page-title-action,
.hgqb-modal .button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--hgqb-line-strong);
  background: linear-gradient(180deg, rgba(17, 33, 56, 0.96), rgba(10, 24, 44, 0.98));
  color: var(--hgqb-text);
  box-shadow: var(--hgqb-glow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.hgqb-admin-shell .button:hover,
.hgqb-public-shell .button:hover,
.hgqb-admin-shell .page-title-action:hover,
.hgqb-public-shell .page-title-action:hover,
.hgqb-modal .button:hover {
  transform: translateY(-1px);
  border-color: rgba(113, 194, 255, 0.44);
  background: linear-gradient(180deg, rgba(20, 40, 69, 0.98), rgba(11, 27, 50, 1));
  color: #fff;
}

.hgqb-admin-shell .button.button-primary,
.hgqb-public-shell .button.button-primary,
.hgqb-modal .button.button-primary,
.hgqb-admin-shell .page-title-action {
  background: linear-gradient(135deg, var(--hgqb-primary), var(--hgqb-primary-2));
  border-color: rgba(126, 214, 255, 0.58);
  color: #06101d;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(24, 140, 255, 0.24), 0 0 18px rgba(67, 182, 255, 0.22);
}

.hgqb-admin-shell .button.button-primary:hover,
.hgqb-public-shell .button.button-primary:hover,
.hgqb-modal .button.button-primary:hover,
.hgqb-admin-shell .page-title-action:hover {
  color: #06101d;
  border-color: rgba(176, 232, 255, 0.9);
  box-shadow: 0 12px 32px rgba(24, 140, 255, 0.3), 0 0 24px rgba(67, 182, 255, 0.28);
}

.hgqb-admin-hero,
.hgqb-builder-hero,
.hgqb-login-card,
.hgqb-panel,
.hgqb-filter-panel,
.hgqb-table.hgqb-panelised,
.hgqb-checkpoint,
.hgqb-modal-dialog {
  background:
    linear-gradient(180deg, rgba(13, 27, 47, 0.96) 0%, rgba(8, 19, 35, 0.98) 100%);
  border: 1px solid var(--hgqb-line);
  border-radius: var(--hgqb-radius);
  box-shadow: var(--hgqb-shadow), var(--hgqb-glow);
  backdrop-filter: blur(8px);
}

.hgqb-panel,
.hgqb-login-card,
.hgqb-modal-dialog {
  overflow: hidden;
  position: relative;
}

.hgqb-panel::before,
.hgqb-login-card::before,
.hgqb-admin-hero::before,
.hgqb-builder-hero::before,
.hgqb-checkpoint::before,
.hgqb-modal-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(67,182,255,.08), transparent 32%, transparent 70%, rgba(67,182,255,.06));
  pointer-events: none;
}

.hgqb-panel {
  padding: 24px;
}

.hgqb-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 24px;
  margin-top: 18px;
}

.hgqb-grid.lower-grid {
  margin-top: 24px;
}

.hgqb-sticky {
  position: sticky;
  top: 34px;
  align-self: start;
}

.hgqb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.hgqb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(67, 182, 255, 0.12);
  color: #9ad9ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  border: 1px solid rgba(67, 182, 255, 0.18);
  margin-bottom: 14px;
}

.hgqb-admin-hero h2,
.hgqb-front-hero h1,
.hgqb-panel h2,
.hgqb-settings-card h3,
.hgqb-modal-header h2 {
  margin: 0 0 10px;
  color: var(--hgqb-text);
  line-height: 1.1;
}

.hgqb-admin-hero h2,
.hgqb-front-hero h1 {
  font-size: clamp(28px, 2.6vw, 38px);
  max-width: 820px;
}

.hgqb-panel h2,
.hgqb-settings-card h3,
.hgqb-modal-header h2 {
  font-size: 20px;
}

.hgqb-admin-hero p,
.hgqb-front-hero p,
.hgqb-settings-card p,
.hgqb-inline-note,
.hgqb-passport-card p,
.hgqb-log-item span,
.hgqb-table td,
.hgqb-table th,
.hgqb-admin-shell p,
.hgqb-public-shell p,
.hgqb-public-shell li,
.hgqb-admin-shell li {
  color: var(--hgqb-muted);
}

.hgqb-front-hero {
  position: relative;
}

.hgqb-linkbox {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px 0 14px;
}

.hgqb-linkbox input,
.hgqb-fields input,
.hgqb-fields textarea,
.hgqb-fields select,
.hgqb-moderator-form input,
.hgqb-moderator-form textarea,
.hgqb-moderator-form select,
.hgqb-login-form input,
.hgqb-filter-bar select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(107, 160, 214, 0.22);
  background: linear-gradient(180deg, rgba(7, 18, 34, 0.9), rgba(12, 24, 42, 0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), inset 0 0 0 1px rgba(255,255,255,0.01);
  color: var(--hgqb-text);
  padding: 12px 14px;
}

.hgqb-linkbox input {
  font-size: 13px;
}

.hgqb-fields textarea,
.hgqb-moderator-form textarea {
  min-height: 108px;
  resize: vertical;
}

.hgqb-fields input::placeholder,
.hgqb-fields textarea::placeholder,
.hgqb-login-form input::placeholder,
.hgqb-moderator-form input::placeholder,
.hgqb-moderator-form textarea::placeholder {
  color: #6f88a8;
}

.hgqb-fields input:focus,
.hgqb-fields textarea:focus,
.hgqb-fields select:focus,
.hgqb-moderator-form input:focus,
.hgqb-moderator-form textarea:focus,
.hgqb-moderator-form select:focus,
.hgqb-login-form input:focus,
.hgqb-filter-bar select:focus,
.hgqb-linkbox input:focus {
  border-color: rgba(118, 215, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(24, 140, 255, 0.16), 0 0 18px rgba(67, 182, 255, 0.14);
  outline: none;
}

.hgqb-chip-row,
.hgqb-passport-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hgqb-chip,
.hgqb-badge,
.hgqb-badge-lite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.045);
  color: #b7cde6;
  border: 1px solid rgba(255,255,255,0.06);
}

.hgqb-chip.is-ok,
.status-approved {
  background: rgba(91, 228, 155, 0.1);
  color: #79f0b5;
  border-color: rgba(91, 228, 155, 0.18);
}

.hgqb-chip.is-warning,
.status-submitted,
.status-under_review {
  background: rgba(255, 191, 95, 0.1);
  color: #ffd58f;
  border-color: rgba(255, 191, 95, 0.18);
}

.status-imported {
  background: rgba(67, 182, 255, 0.12);
  color: #9ad9ff;
  border-color: rgba(67, 182, 255, 0.18);
}

.status-needs_fix,
.status-rejected {
  background: rgba(255, 125, 143, 0.12);
  color: #ffb0bd;
  border-color: rgba(255, 125, 143, 0.22);
}

.status-draft,
.status-archived {
  background: rgba(255,255,255,0.05);
  color: #d5e4f3;
  border-color: rgba(255,255,255,0.08);
}

.hgqb-badge-lite.is-required {
  background: rgba(67, 182, 255, 0.14);
  color: #9ad9ff;
  border-color: rgba(67, 182, 255, 0.22);
}

.hgqb-settings-card,
.hgqb-passport-card,
.hgqb-location-row,
.hgqb-log-item pre {
  background: linear-gradient(180deg, rgba(9, 21, 38, 0.86), rgba(14, 31, 55, 0.92));
  border: 1px solid rgba(92, 153, 220, 0.16);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.hgqb-settings-card,
.hgqb-passport-card {
  padding: 18px;
}

.hgqb-fields,
.hgqb-moderator-form,
.hgqb-login-form {
  display: grid;
  gap: 16px;
}

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

.hgqb-fields label,
.hgqb-moderator-form label,
.hgqb-login-form label {
  display: grid;
  gap: 8px;
  position: relative;
}

.hgqb-field-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 700;
}

.hgqb-label-text,
.hgqb-fields label > span,
.hgqb-login-form label > span,
.hgqb-moderator-form label > span {
  color: #eaf3fe;
}

.hgqb-help {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(96, 168, 240, 0.32);
  background: rgba(67, 182, 255, 0.09);
  color: #9ad9ff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.hgqb-help::after {
  content: attr(data-help);
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(300px, 72vw);
  background: rgba(4, 14, 28, 0.96);
  color: #eef6ff;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(67, 182, 255, 0.26);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 18px 44px rgba(0,0,0,.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: .18s ease;
  z-index: 20;
}

.hgqb-help:hover::after,
.hgqb-help.is-open::after {
  opacity: 1;
  transform: translateY(0);
}

.hgqb-lang-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hgqb-lang-btn {
  border: 1px solid rgba(86, 157, 255, 0.18);
  background: rgba(8, 18, 34, 0.88);
  color: #bcd9f7;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: all .18s ease;
}

.hgqb-lang-btn:hover,
.hgqb-lang-btn.is-active {
  background: linear-gradient(135deg, rgba(67,182,255,.22), rgba(43,127,255,.18));
  border-color: rgba(118, 215, 255, 0.4);
  color: #fff;
  box-shadow: 0 0 16px rgba(67, 182, 255, 0.12);
}

.hgqb-panel-header,
.hgqb-checkpoint-head,
.hgqb-submit-actions,
.hgqb-filter-bar,
.hgqb-inline-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hgqb-filter-panel {
  margin-bottom: 18px;
}

.hgqb-checkpoint {
  padding: 20px;
  margin-bottom: 18px;
}

.hgqb-checkpoint-head {
  margin-bottom: 14px;
}

.hgqb-checkpoint h3 {
  margin: 0;
  color: var(--hgqb-text);
}

.hgqb-location-row {
  margin: 16px 0 8px;
  padding: 14px 16px;
}

.hgqb-inline-note {
  font-size: 12px;
  flex: 1;
}

.hgqb-passport-card p {
  margin: 10px 0;
}

.hgqb-passport-card strong,
.hgqb-log-item strong,
.hgqb-table strong,
.hgqb-modal-header,
.hgqb-map-actions p {
  color: var(--hgqb-text);
}

.hgqb-table.hgqb-panelised {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.hgqb-table.hgqb-panelised th,
.hgqb-table.hgqb-panelised td {
  padding: 16px 14px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(90, 140, 196, 0.12);
}

.hgqb-table.hgqb-panelised thead th {
  background: rgba(67, 182, 255, 0.08);
  color: #d7eaff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hgqb-table.hgqb-panelised tbody tr:hover td {
  background: rgba(67, 182, 255, 0.04);
}

.hgqb-table.hgqb-panelised tbody tr:nth-child(odd) td {
  background: rgba(246, 250, 255, 0.96);
  color: #102843;
}

.hgqb-table.hgqb-panelised tbody tr:nth-child(odd) strong,
.hgqb-table.hgqb-panelised tbody tr:nth-child(odd) code {
  color: #0c2340;
}

.hgqb-table.hgqb-panelised tbody tr:nth-child(even) td {
  background: linear-gradient(180deg, rgba(7, 18, 34, 0.92), rgba(11, 27, 50, 0.96));
  color: #e7f2ff;
}

.hgqb-table.hgqb-panelised tbody tr:nth-child(even) strong,
.hgqb-table.hgqb-panelised tbody tr:nth-child(even) code {
  color: #f5fbff;
}

.hgqb-table.hgqb-panelised tbody tr:hover td {
  filter: brightness(1.02);
}

.hgqb-log-list {
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.hgqb-log-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(90, 140, 196, 0.12);
}

.hgqb-log-item pre {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 12px;
  color: #d5e8fb;
}

.hgqb-front-wrap {
  margin: 28px auto;
}

.hgqb-front-notice {
  padding: 14px 16px;
  margin: 0 0 16px;
  border: 1px solid var(--hgqb-line);
  background: linear-gradient(180deg, rgba(10, 20, 36, 0.95), rgba(11, 26, 46, 0.96));
}

.hgqb-front-notice.success {
  border-color: rgba(91, 228, 155, 0.24);
  color: #9af5c3;
}

.hgqb-front-notice.error {
  border-color: rgba(255, 125, 143, 0.28);
  color: #ffc6cf;
}

.hgqb-login-card {
  max-width: 760px;
  margin: 30px auto;
  padding: 30px;
}

.hgqb-front-form .button-large,
.hgqb-login-form .button-large {
  min-height: 50px;
  padding-inline: 18px;
  border-radius: 14px;
}

.hgqb-submit-actions {
  margin-top: 18px;
}

.hgqb-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 19, 0.72);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
}

.hgqb-modal[hidden] {
  display: none;
}

.hgqb-modal-dialog {
  width: min(1080px, 100%);
}

.hgqb-modal-header,
.hgqb-map-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(90, 140, 196, 0.14);
}

.hgqb-map-actions {
  border-top: 1px solid rgba(90, 140, 196, 0.14);
  border-bottom: 0;
}

#hgqb-map {
  height: 520px;
  background: #08121f;
}

body.hgqb-modal-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .hgqb-grid,
  .hgqb-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .hgqb-fields.two-col,
  .hgqb-grid {
    grid-template-columns: 1fr;
  }

  .hgqb-sticky {
    position: static;
  }

  .hgqb-topbar,
  .hgqb-linkbox,
  .hgqb-panel-header,
  .hgqb-filter-bar,
  .hgqb-inline-actions,
  .hgqb-submit-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hgqb-panel,
  .hgqb-login-card {
    padding: 18px;
  }
}

/* v0.4 wizard + full-page dark shell */
html,
body,
body:not(.wp-admin),
body:not(.wp-admin) #page,
body:not(.wp-admin) .site,
body:not(.wp-admin) .site-main,
body:not(.wp-admin) .site-content,
body:not(.wp-admin) .content-area,
body:not(.wp-admin) .entry-content,
body:not(.wp-admin) main,
body:not(.wp-admin) article,
body:not(.wp-admin) .wp-site-blocks {
  background:
    radial-gradient(circle at top right, rgba(34, 163, 255, 0.18), transparent 24%),
    radial-gradient(circle at top left, rgba(0, 214, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #06101d 0%, #091425 100%) !important;
}

html, body {
  min-height: 100%;
  overscroll-behavior-y: none;
}

body:not(.wp-admin) {
  min-height: 100vh;
  color: var(--hgqb-text);
}

.hgqb-public-shell,
.hgqb-front-wrap {
  min-height: 100vh;
  padding-bottom: 48px;
}

.hgqb-wizard-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.hgqb-step-btn {
  appearance: none;
  border: 1px solid var(--hgqb-line);
  background: linear-gradient(180deg, rgba(10, 24, 44, 0.9), rgba(6, 16, 29, 0.95));
  color: var(--hgqb-muted);
  border-radius: 16px;
  min-height: 54px;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, color .18s ease, box-shadow .18s ease;
}

.hgqb-step-btn:hover {
  transform: translateY(-1px);
  border-color: var(--hgqb-line-strong);
  color: var(--hgqb-text);
}

.hgqb-step-btn.is-active {
  color: #06101d;
  border-color: rgba(176, 232, 255, 0.9);
  background: linear-gradient(135deg, var(--hgqb-primary), var(--hgqb-primary-2));
  box-shadow: 0 12px 32px rgba(24, 140, 255, 0.22), 0 0 24px rgba(67, 182, 255, 0.18);
}

.hgqb-step-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hgqb-step-panel {
  display: none;
}

.hgqb-step-panel.is-active {
  display: block;
}

.hgqb-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.hgqb-panel-header.compact {
  margin-bottom: 12px;
}

.hgqb-panel-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--hgqb-muted);
  font-size: 13px;
  line-height: 1.4;
  max-width: 520px;
}

.hgqb-panel-inner-alt,
.hgqb-route-summary,
.hgqb-review-card {
  background: linear-gradient(180deg, rgba(7, 18, 34, 0.82), rgba(11, 27, 50, 0.9));
  border: 1px solid rgba(107, 160, 214, 0.16);
  border-radius: 18px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.hgqb-route-summary {
  margin-bottom: 16px;
}

.hgqb-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hgqb-review-card strong {
  display: block;
  color: var(--hgqb-text);
  margin-bottom: 8px;
}

.hgqb-step-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
}

.hgqb-step-actions.between {
  justify-content: space-between;
}

.hgqb-location-row {
  margin: 14px 0;
  align-items: center;
  flex-wrap: wrap;
}

.hgqb-checkpoint {
  margin-bottom: 14px;
}

.hgqb-checkpoint-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hgqb-checkpoint-head h3 {
  margin: 0;
  color: var(--hgqb-text);
}

.hgqb-checkpoint-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hgqb-help {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #06101d;
  background: linear-gradient(135deg, var(--hgqb-primary), #8fdfff);
  border: 0;
  cursor: pointer;
  position: relative;
  box-shadow: 0 6px 16px rgba(67, 182, 255, 0.22);
}

.hgqb-help::after {
  content: attr(data-help);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, 70vw);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--hgqb-line-strong);
  background: rgba(6, 16, 29, 0.96);
  color: var(--hgqb-text);
  font-size: 12px;
  line-height: 1.45;
  box-shadow: var(--hgqb-shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 15;
  text-align: left;
}

.hgqb-help.is-open::after,
.hgqb-help:hover::after,
.hgqb-help:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.hgqb-field-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hgqb-label-text {
  color: var(--hgqb-text);
  font-weight: 700;
}

.hgqb-badge-lite {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--hgqb-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}

.hgqb-badge-lite.is-required {
  color: #06101d;
  background: linear-gradient(135deg, #9de8ff, #56c2ff);
  border-color: rgba(176, 232, 255, 0.9);
}

.hgqb-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.hgqb-lang-btn {
  appearance: none;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--hgqb-line);
  background: rgba(7, 18, 34, 0.75);
  color: var(--hgqb-text);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 700;
}

.hgqb-lang-btn.is-active {
  color: #06101d;
  background: linear-gradient(135deg, var(--hgqb-primary), var(--hgqb-primary-2));
  border-color: rgba(176, 232, 255, 0.9);
}

.hgqb-front-notice,
.hgqb-chip,
.hgqb-log-item,
.hgqb-passport-card {
  background: rgba(8, 19, 35, 0.82);
  border: 1px solid rgba(107, 160, 214, 0.16);
  border-radius: 16px;
}

.hgqb-passport-card {
  padding: 16px;
}

.hgqb-front-notice {
  padding: 14px 16px;
  margin-bottom: 16px;
}

.hgqb-front-notice.success {
  border-color: rgba(91, 228, 155, 0.32);
}

.hgqb-front-notice.error {
  border-color: rgba(255, 125, 143, 0.28);
}

#hgqb-map {
  min-height: 420px;
  background: #091425;
}

@media (max-width: 980px) {
  .hgqb-wizard-nav,
  .hgqb-review-grid,
  .hgqb-grid,
  .hgqb-hero-grid {
    grid-template-columns: 1fr;
  }

  .hgqb-step-actions.between,
  .hgqb-step-actions {
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .hgqb-sticky {
    position: static;
  }
}

.hgqb-ai-panel {
  margin: 18px 0 24px;
}

.hgqb-ai-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.hgqb-ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: 18px;
}

.hgqb-ai-controls {
  align-items: stretch;
}

.hgqb-ai-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hgqb-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hgqb-ai-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(107, 160, 214, 0.22);
  background: linear-gradient(180deg, rgba(7, 18, 34, 0.82), rgba(12, 24, 42, 0.92));
  color: var(--hgqb-text);
}

.hgqb-ai-status.is-success {
  border-color: rgba(91, 228, 155, 0.34);
  box-shadow: 0 0 0 1px rgba(91, 228, 155, 0.08), 0 0 22px rgba(91, 228, 155, 0.1);
}

.hgqb-ai-status.is-warning {
  border-color: rgba(255, 191, 95, 0.34);
  box-shadow: 0 0 0 1px rgba(255, 191, 95, 0.08), 0 0 22px rgba(255, 191, 95, 0.1);
}

.hgqb-ai-status.is-error {
  border-color: rgba(255, 125, 143, 0.34);
  box-shadow: 0 0 0 1px rgba(255, 125, 143, 0.08), 0 0 22px rgba(255, 125, 143, 0.1);
}

.hgqb-ai-result {
  margin-top: 14px;
}

.hgqb-ai-report {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(107, 160, 214, 0.16);
  background: rgba(9, 20, 36, 0.52);
}

.hgqb-ai-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.hgqb-ai-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hgqb-ai-list {
  margin: 0;
  padding-left: 18px;
}

.hgqb-ai-list li + li {
  margin-top: 8px;
}

.hgqb-ai-fix {
  margin-top: 6px;
  color: var(--hgqb-muted);
}

.hgqb-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hgqb-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

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

  .hgqb-ai-head {
    flex-direction: column;
  }
}

html,
body,
body.wp-admin,
body.wp-admin #wpwrap,
body.wp-admin #wpbody,
body.wp-admin #wpbody-content {
  background-color: #06101d;
}

body.wp-admin,
.hgqb-public-shell,
.hgqb-public-shell * {
  overscroll-behavior: contain;
}

.hgqb-import-panel .notice.inline {
  margin: 0 0 14px;
}

.hgqb-media-block-shell,
.hgqb-follow-up-media-shell {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--hgqb-line);
  border-radius: 18px;
  background: rgba(7, 18, 34, 0.68);
}

.hgqb-media-mode-row,
.hgqb-media-upload-actions,
.hgqb-media-bulk-actions,
.hgqb-media-name-row,
.hgqb-preview-file-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hgqb-media-mode-row {
  margin-bottom: 14px;
}

.hgqb-media-mode-btn.is-active,
.hgqb-media-clear.is-passive {
  border-color: rgba(156, 216, 255, 0.56);
  box-shadow: 0 0 0 1px rgba(67, 182, 255, 0.16), 0 0 24px rgba(67, 182, 255, 0.12);
}

.hgqb-media-panels {
  display: grid;
  gap: 14px;
}

.hgqb-media-panel {
  display: none;
  border: 1px dashed rgba(102, 174, 255, 0.28);
  border-radius: 16px;
  padding: 14px;
  background: rgba(10, 24, 42, 0.72);
}

.hgqb-media-panel.is-active {
  display: block;
}

.hgqb-media-hint,
.hgqb-media-limits,
.hgqb-media-subline,
.hgqb-preview-caption {
  color: var(--hgqb-muted);
  font-size: 12px;
}

.hgqb-media-hint.is-error {
  color: var(--hgqb-warning);
}

.hgqb-media-list-wrap.is-scroll {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.hgqb-media-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.hgqb-media-card {
  display: grid;
  grid-template-columns: 30px 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(96, 169, 255, 0.2);
  background: rgba(15, 31, 52, 0.88);
}

.hgqb-media-card:hover {
  border-color: rgba(130, 202, 255, 0.38);
}

.hgqb-media-handle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--hgqb-muted);
  font-size: 20px;
  cursor: grab;
  padding: 8px 4px;
  line-height: 1;
}

.hgqb-media-thumb,
.hgqb-media-icon {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  border: 1px solid rgba(96, 169, 255, 0.18);
  background: rgba(6, 16, 29, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hgqb-media-thumb img,
.hgqb-preview-media.is-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hgqb-media-icon {
  font-size: 22px;
  font-weight: 800;
  color: var(--hgqb-text);
}

.hgqb-media-meta {
  min-width: 0;
}

.hgqb-media-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hgqb-media-caption-wrap {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.hgqb-media-caption-wrap input {
  width: 100%;
}

.hgqb-media-card-actions {
  display: flex;
  align-items: start;
}

.hgqb-media-empty {
  border-radius: 14px;
  border: 1px dashed rgba(96, 169, 255, 0.2);
  padding: 16px;
  text-align: center;
  color: var(--hgqb-muted);
}

.hgqb-preview-dialog {
  max-width: 880px;
}

.hgqb-preview-body {
  max-height: 72vh;
  overflow: auto;
  padding-top: 4px;
}

.hgqb-preview-shell {
  display: grid;
  gap: 14px;
}

.hgqb-preview-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.hgqb-preview-media {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(96, 169, 255, 0.18);
  background: rgba(11, 25, 44, 0.88);
  display: grid;
  gap: 10px;
}

.hgqb-preview-media audio,
.hgqb-preview-media video {
  width: 100%;
}

@media (max-width: 860px) {
  .hgqb-media-card {
    grid-template-columns: 28px 72px minmax(0, 1fr);
  }

  .hgqb-media-card-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}


.hgqb-ai-test-wrap {
  display: grid;
  gap: 10px;
}

.hgqb-ai-debug {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.45;
  overflow: auto;
  max-height: 220px;
}

.hgqb-inline-form {
  margin: 0;
}


.hgqb-table .hgqb-quest-title {
  font-weight: 800;
}

.hgqb-table.hgqb-panelised tbody tr:nth-child(odd) .hgqb-quest-title {
  color: #0b2039 !important;
}

.hgqb-table.hgqb-panelised tbody tr:nth-child(even) .hgqb-quest-title {
  color: #f7fbff !important;
}

.hgqb-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hgqb-inline-status-form {
  display: inline-flex;
  margin: 0;
}

.hgqb-copy-button {
  white-space: nowrap;
}

/* Multi-AI provider settings */
.hgqb-ai-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.hgqb-ai-provider-box {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.035);
}
.hgqb-provider-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.hgqb-ai-advanced {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 12px;
}
.hgqb-ai-advanced summary {
  cursor: pointer;
  font-weight: 700;
}

/* Multi-AI provider settings */
.hgqb-ai-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.hgqb-ai-provider-box {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.035);
}
.hgqb-provider-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.hgqb-ai-advanced {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 12px;
}
.hgqb-ai-advanced summary {
  cursor: pointer;
  font-weight: 700;
}
