/* Advok Guided Entry 0.1.0 — inherits the page palette; TrueVOE hosts remap --advok-* variables. */
.ge { --ge-ink: var(--advok-navy, #14263F); --ge-accent: var(--advok-teal, #2f7d78); --ge-line: #d5dbe3; --ge-soft: #f4f6f9; --ge-muted: #5b6b85;
  border: 1px solid var(--ge-line); border-radius: 16px; background: #fff; padding: 20px; margin: 0 0 20px; color: var(--ge-ink); font-size: 16px; }
.ge-hidden { display: none !important; }
.ge-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ge-h { margin: 0 0 4px; font-size: 1.25rem; }
.ge-progress { display: flex; gap: 6px; margin: 10px 0 14px; }
.ge-dot { flex: 1; height: 4px; border-radius: 4px; background: var(--ge-line); }
.ge-dot.is-done { background: var(--ge-accent); opacity: .55; }
.ge-dot.is-current { background: var(--ge-accent); }
.ge-count { margin: 0; font-size: .8rem; color: var(--ge-muted); text-transform: uppercase; letter-spacing: .06em; }
.ge-title { margin: 2px 0 6px; font-size: 1.15rem; line-height: 1.3; outline: none; }
.ge-title:focus-visible { outline: 3px solid #B59C70; outline-offset: 3px; border-radius: 4px; }
.ge-help { margin: 0 0 12px; color: var(--ge-muted); font-size: .95rem; line-height: 1.45; }
.ge-sub { margin: 14px 0 8px; font-size: .9rem; color: var(--ge-ink); }
.ge-note { margin: 6px 0 0; font-size: .85rem; color: var(--ge-muted); line-height: 1.45; }
.ge-note--strong { color: var(--ge-ink); background: var(--ge-soft); padding: 10px 12px; border-radius: 10px; }
.ge-error { margin: 10px 0 0; color: #b42318; font-weight: 600; min-height: 0; }
.ge-error:empty { display: none; }
.ge-status { margin: 10px 0 0; font-weight: 600; }

/* single-choice cards (real radios) */
.ge-choices { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
/* .ge-choices .ge-choice: outranks page rules such as live #871's ".advf-focused label { display: block }". */
.ge-choices .ge-choice { margin: 0; font-weight: 400; }
.ge-choices .ge-choice { display: grid; }
.ge-choice { position: relative; display: grid; gap: 2px; padding: 14px 16px; min-height: 48px; border: 2px solid var(--ge-line); border-radius: 12px; cursor: pointer; background: #fff; }
.ge-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ge-choice__t { font-weight: 600; }
.ge-choice__d { font-weight: 400; font-size: .85rem; color: var(--ge-muted); line-height: 1.4; }
.ge-choice:has(input:checked) { border-color: var(--ge-accent); background: color-mix(in srgb, var(--ge-accent) 8%, #fff); }
.ge-choice:has(input:checked) .ge-choice__t::before { content: "✓ "; color: var(--ge-accent); }
.ge-choice:has(input:focus-visible) { outline: 3px solid #B59C70; outline-offset: 2px; }
.ge-scale { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 12px; }
.ge-scale .ge-scale__h { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.ge-scale .ge-choice { padding: 10px 6px; text-align: center; font-size: .85rem; }
.ge-scale .ge-choice__t::before { content: none !important; }

/* multi-select chips */
.ge-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ge-chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--ge-line); background: #fff; color: var(--ge-ink); font: inherit; font-size: .95rem; cursor: pointer; }
.ge-chip.is-on { border-color: var(--ge-accent); background: var(--ge-accent); color: #fff; }
.ge-chip.is-on::before { content: "✓ "; }
.ge-chip:focus-visible, .ge-btn:focus-visible, .ge-link:focus-visible, .ge-x:focus-visible, .ge-input:focus-visible { outline: 3px solid #B59C70; outline-offset: 2px; }
.ge-picked { margin: 14px 0 0; padding: 12px; background: var(--ge-soft); border-radius: 12px; }
.ge-picked__h { margin: 0 0 8px; font-weight: 600; font-size: .9rem; }
.ge-picked__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ge-picked__list li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--ge-line); font-size: .9rem; }
.ge-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ge-muted); }
.ge-x:hover { background: var(--ge-line); }

/* fields */
.ge-field { display: grid; gap: 6px; margin: 12px 0 0; }
.ge-field > label { font-weight: 600; font-size: .95rem; }
.ge-input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; border: 1px solid #b9c2cf; border-radius: 10px; font: inherit; background: #fff; color: inherit; }
textarea.ge-input { min-height: 110px; resize: vertical; }
.ge-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ge-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; line-height: 1.4; }
.ge-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.ge-adder { display: flex; gap: 8px; margin-top: 6px; }
.ge-search .ge-input { margin-bottom: 10px; }

/* summary */
.ge-summary { margin: 0; display: grid; gap: 8px; }
.ge-summary > div { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--ge-line); }
.ge-summary dt { font-weight: 600; font-size: .9rem; }
.ge-summary dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* navigation */
.ge-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.ge-nav [hidden] { display: none; }
.ge-btn { min-height: 48px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; border: 2px solid var(--ge-ink); }
.ge-btn--primary { background: var(--ge-ink); color: #fff; margin-left: auto; }
.ge-btn--primary:disabled { opacity: .6; cursor: progress; }
.ge-btn--ghost { background: #fff; color: var(--ge-ink); }
.ge-link { background: none; border: 0; padding: 4px 0; color: var(--ge-accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ge > .ge-link { margin-top: 12px; font-size: .9rem; }
body.truevoe-host .ge { --ge-ink: #20252D; --ge-accent: #397653; }

@media (max-width: 600px) {
  .ge { padding: 16px; border-radius: 14px; }
  .ge-choices { grid-template-columns: 1fr; }
  .ge-scale { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .ge-scale .ge-choice { font-size: .75rem; padding: 10px 2px; }
  .ge-row { grid-template-columns: 1fr; }
  .ge-summary > div { grid-template-columns: 1fr auto; }
  .ge-summary dt { grid-column: 1 / -1; }
  .ge-nav { position: sticky; bottom: 0; background: #fff; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); margin-bottom: -16px; border-top: 1px solid var(--ge-line); }
  .ge-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .ge * { transition: none !important; } }
/* 0.1.2: a choice the server would refuse (e.g. a review without a confirmed interaction) stays visible with its reason. */
.ge-choice.is-disabled { cursor: not-allowed; background: #f6f7f9; border-style: dashed; }
.ge-choice.is-disabled .ge-choice__t { opacity: .7; }
.ge-choice.is-disabled .ge-choice__d { color: #3d4652; }
