:root {
  --igh-ink: #181713;
  --igh-muted: #6e6b66;
  --igh-line: #ded7cc;
  --igh-paper: #fcfbf8;
  --igh-page: #f5f2ec;
  --igh-field: #fffefd;
  --igh-accent: #75603c;
  --igh-accent-dark: #5e4d31;
  --igh-focus: #2f5d62;
}

.igh-widget {
  color: var(--igh-ink);
  background: var(--igh-paper);
  border: 1px solid var(--igh-line);
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(60, 51, 38, 0.08);
  font-family: inherit;
  max-width: 980px;
  padding: 42px;
}

.igh-widget * {
  box-sizing: border-box;
}

.igh-widget[data-gateway="home"] {
  background:
    radial-gradient(circle at 7% 24%, rgba(24, 23, 19, 0.055), transparent 25%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.93) 34%, rgba(255, 255, 255, 0.98)),
    var(--igh-paper);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: 1220px;
  overflow: hidden;
  padding: 48px 36px 0;
  position: relative;
}

.igh-widget[data-gateway="home"]::before {
  background-image:
    linear-gradient(180deg, rgba(252, 251, 248, 0) 0%, rgba(252, 251, 248, 0.16) 34%, rgba(252, 251, 248, 0.9) 78%, rgba(252, 251, 248, 1) 100%),
    linear-gradient(90deg, rgba(252, 251, 248, 0.08), rgba(252, 251, 248, 0.72) 70%, rgba(252, 251, 248, 1)),
    url("hans-silhouette.png");
  background-position: left top;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  filter: grayscale(1) contrast(0.88) brightness(1.05);
  height: min(500px, 58vh);
  left: 0;
  opacity: 0.28;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: min(540px, 50vw);
  z-index: 0;
  -webkit-mask-image:
    linear-gradient(180deg, #000 0%, #000 36%, rgba(0, 0, 0, 0.34) 68%, transparent 100%),
    linear-gradient(90deg, #000 0%, #000 34%, rgba(0, 0, 0, 0.5) 58%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, #000 0%, #000 36%, rgba(0, 0, 0, 0.34) 68%, transparent 100%),
    linear-gradient(90deg, #000 0%, #000 34%, rgba(0, 0, 0, 0.5) 58%, transparent 100%);
  mask-composite: intersect;
}

.igh-widget[data-login-only="true"][data-intro-visible="false"]::before {
  display: none;
}

.igh-widget[data-gateway="home"][data-intro-visible="true"]::before {
  background-image: linear-gradient(90deg, rgba(252, 251, 248, 0.02), rgba(252, 251, 248, 0.58) 68%, rgba(252, 251, 248, 1)), url("hans-silhouette.png");
  filter: grayscale(1) contrast(0.9) brightness(1.05);
  height: min(820px, 86vh);
  opacity: 0.3;
  width: min(500px, 46vw);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 42%, rgba(0, 0, 0, 0.52) 66%, transparent 100%);
  -webkit-mask-composite: source-over;
  mask-image: linear-gradient(90deg, #000 0%, #000 42%, rgba(0, 0, 0, 0.52) 66%, transparent 100%);
  mask-composite: add;
}

.igh-chat-shell[hidden],
.igh-gateway[hidden] {
  display: none;
}

.igh-gateway-panel {
  margin: 0 auto;
  max-width: 820px;
}

.igh-gateway-home {
  max-width: 1040px;
  position: relative;
  z-index: 1;
}

.igh-gateway-language {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
}

.igh-gateway-language .igh-flags {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(94, 77, 49, 0.13);
  border-radius: 999px;
  gap: 5px;
  min-height: 24px;
  padding: 3px 7px;
}

.igh-gateway-language .igh-flag {
  height: 24px;
  padding: 2px 1px 4px;
  width: 25px;
}

.igh-gateway-language .igh-flag svg {
  height: 14px;
  width: 21px;
}

.igh-gateway-mark {
  align-items: center;
  border: 1px solid #315b27;
  border-radius: 50%;
  color: #315b27;
  display: flex;
  height: 86px;
  justify-content: center;
  margin: 0 auto 18px;
  width: 86px;
}

.igh-gateway-mark svg {
  height: 48px;
  width: 48px;
}

.igh-gateway-kicker {
  color: var(--igh-accent-dark);
  font: 700 12px/1.2 Arial, sans-serif;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-align: center;
  text-transform: uppercase;
}

.igh-gateway-panel h1 {
  color: var(--igh-ink);
  font-family: inherit;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.06;
  margin: 0 auto 14px;
  max-width: 760px;
  text-align: center;
}

.igh-gateway-subtitle {
  color: #315b27;
  font-family: inherit;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.25;
  margin: 0 auto 22px;
  max-width: 720px;
  text-align: center;
}

.igh-gateway-rule {
  align-items: center;
  color: #315b27;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0 auto 24px;
}

.igh-gateway-rule span {
  background: #315b27;
  display: block;
  height: 1px;
  opacity: 0.65;
  width: 86px;
}

.igh-gateway-rule b {
  background: #315b27;
  display: block;
  height: 8px;
  transform: rotate(45deg);
  width: 8px;
}

.igh-gateway-lead {
  color: var(--igh-ink);
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 auto 30px;
  max-width: 760px;
  padding: 0;
  text-align: center;
}

.igh-gateway-lead p {
  margin: 4px 0;
}

.igh-gateway-notice {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(94, 77, 49, 0.18);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(60, 51, 38, 0.06);
  display: flex;
  gap: 22px;
  margin: 0 auto 24px;
  max-width: 860px;
  padding: 18px 24px;
}

.igh-gateway-notice-icon {
  color: #315b27;
  flex: 0 0 auto;
}

.igh-gateway-notice-icon svg {
  height: 44px;
  width: 44px;
}

.igh-gateway-notice strong {
  color: #315b27;
  display: block;
  font: 700 17px/1.35 Arial, sans-serif;
  margin-bottom: 4px;
}

.igh-gateway-notice p {
  color: var(--igh-ink);
  font: 15px/1.5 Arial, sans-serif;
  margin: 0;
}

.igh-gateway-sections {
  display: grid;
  gap: 22px;
}

.igh-gateway-section {
  border-top: 1px solid var(--igh-line);
  padding-top: 20px;
}

.igh-gateway-section h2 {
  color: var(--igh-ink);
  font-family: inherit;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 10px;
}

.igh-gateway-section p {
  color: var(--igh-muted);
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 10px;
}

.igh-gateway-section p:last-child {
  margin-bottom: 0;
}

.igh-gateway-actions {
  border-top: 0;
  margin: 20px auto 48px;
  padding-top: 0;
  text-align: center;
}

.igh-gateway-start {
  background: #315b27;
  border-color: #315b27;
  border-radius: 8px;
  box-shadow: 0 12px 22px rgba(49, 91, 39, 0.18);
  font-size: 20px;
  max-width: 100%;
  min-width: 300px;
  padding: 18px 28px;
  white-space: normal;
}

.igh-gateway-start:hover {
  background: #446d38;
  border-color: #446d38;
}

.igh-gateway-actions p {
  color: var(--igh-muted);
  font: 15px/1.5 Arial, sans-serif;
  margin: 18px 0 0;
}

.igh-gateway-cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(6, 1fr);
  margin: 0 auto 22px;
  max-width: 980px;
}

.igh-gateway-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(94, 77, 49, 0.16);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(60, 51, 38, 0.07);
  grid-column: span 2;
  min-height: 430px;
  padding: 28px;
}

.igh-gateway-card-icon {
  align-items: center;
  border: 1px solid rgba(49, 91, 39, 0.55);
  border-radius: 50%;
  color: #315b27;
  display: flex;
  height: 70px;
  justify-content: center;
  margin: -10px auto 18px;
  width: 70px;
}

.igh-gateway-card-icon svg {
  height: 42px;
  width: 42px;
}

.igh-gateway-card h2 {
  color: var(--igh-ink);
  font-family: inherit;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.08;
  margin: 0 auto 8px;
  max-width: 240px;
  text-align: center;
}

.igh-gateway-card-rule {
  background: #315b27;
  height: 1px;
  margin: 14px auto 22px;
  opacity: 0.55;
  width: 44px;
}

.igh-gateway-card p {
  color: var(--igh-ink);
  font: 14px/1.72 Arial, sans-serif;
  margin: 0 0 13px;
}

.igh-gateway-card a,
.igh-modal-body a {
  color: #315b27;
  font-weight: 700;
  text-decoration: none;
}

.igh-gateway-card a:hover,
.igh-modal-body a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.igh-link-button {
  background: transparent;
  border: 0;
  color: #315b27;
  cursor: pointer;
  font: 700 14px/1 Arial, sans-serif;
  margin-top: 4px;
  padding: 0;
}

.igh-link-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.igh-label-row {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.igh-info-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #315b27;
  cursor: pointer;
  display: inline-flex;
  font: 700 15px/1 Arial, sans-serif;
  height: 22px;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 22px;
}

.igh-info-button:focus-visible {
  outline: 2px solid rgba(49, 91, 39, 0.45);
  outline-offset: 2px;
}

.igh-gateway-footer {
  align-items: center;
  border-top: 1px solid rgba(94, 77, 49, 0.16);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 36px -36px 0;
  padding: 22px 86px;
}

.igh-gateway-footer-text {
  align-items: center;
  display: flex;
  gap: 18px;
  max-width: 440px;
}

.igh-gateway-footer-text span {
  color: #315b27;
  flex: 0 0 auto;
}

.igh-gateway-footer-text svg {
  height: 48px;
  width: 48px;
}

.igh-gateway-footer-text p {
  color: var(--igh-ink);
  font: 14px/1.55 Arial, sans-serif;
  margin: 0;
}

.igh-gateway-footer-links {
  align-items: center;
  display: flex;
  gap: 26px;
}

.igh-gateway-footer-links .igh-link-button + .igh-link-button {
  border-left: 1px solid rgba(94, 77, 49, 0.32);
  padding-left: 26px;
}

.igh-modal-backdrop {
  align-items: center;
  background: rgba(24, 23, 19, 0.36);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 20;
}

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

.igh-modal {
  background: #fffdf8;
  border: 1px solid rgba(94, 77, 49, 0.24);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(24, 23, 19, 0.26);
  max-height: min(760px, calc(100vh - 48px));
  max-width: 720px;
  overflow: auto;
  padding: 34px 38px;
  position: relative;
  width: min(720px, 100%);
}

.igh-modal-close {
  background: transparent;
  border: 0;
  color: var(--igh-muted);
  cursor: pointer;
  font: 28px/1 Arial, sans-serif;
  padding: 4px 8px;
  position: absolute;
  right: 14px;
  top: 12px;
}

.igh-modal h2 {
  color: var(--igh-ink);
  font-family: inherit;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 32px 18px 0;
}

.igh-info-backdrop {
  align-items: center;
  background: rgba(24, 23, 19, 0.32);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 24;
}

.igh-info-backdrop[hidden] {
  display: none;
}

.igh-info-modal {
  background: #fffdf8;
  border: 1px solid rgba(94, 77, 49, 0.24);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(24, 23, 19, 0.24);
  max-height: min(720px, calc(100vh - 48px));
  max-width: 640px;
  overflow: auto;
  padding: 30px;
  position: relative;
  width: min(640px, calc(100vw - 48px));
}

.igh-info-modal h2 {
  color: var(--igh-ink);
  font-family: inherit;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 40px 16px 0;
}

.igh-info-body p {
  color: var(--igh-ink);
  font: 15px/1.65 Arial, sans-serif;
  margin: 0 0 16px;
}

.igh-info-body h3 {
  color: var(--igh-ink);
  font: 700 15px/1.4 Arial, sans-serif;
  margin: 20px 0 6px;
}

.igh-intent-info-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 8px;
}

.igh-intent-info-list dt {
  color: #315b27;
  font: 700 14px/1.35 Arial, sans-serif;
}

.igh-intent-info-list dd {
  color: var(--igh-ink);
  font: 14px/1.55 Arial, sans-serif;
  margin: 2px 0 0;
}

.igh-route-approach {
  border-top: 1px solid rgba(94, 77, 49, 0.16);
  color: var(--igh-muted);
  font: 12px/1.5 Arial, sans-serif;
  margin-top: 16px;
  padding-top: 12px;
}

.igh-route-label {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.igh-route-display {
  color: var(--igh-accent-dark);
  font-weight: 700;
  margin-top: 3px;
}

.igh-route-explanation {
  margin-top: 3px;
}

.igh-deepening-entry {
  border-top: 1px solid rgba(94, 77, 49, 0.16);
  font-family: Arial, sans-serif;
  margin-top: 14px;
  padding-top: 12px;
}

.igh-deepening-open {
  color: var(--igh-accent-dark);
  font-size: 13px;
}

.igh-deepening-backdrop {
  align-items: center;
  background: rgba(28, 24, 19, 0.32);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 40;
}

.igh-deepening-backdrop[hidden] {
  display: none;
}

.igh-deepening-modal {
  background: #fff;
  border: 1px solid var(--igh-line);
  border-radius: 6px;
  box-shadow: 0 18px 60px rgba(28, 24, 19, 0.22);
  max-height: min(86vh, 820px);
  max-width: 820px;
  overflow: auto;
  padding: 30px;
  position: relative;
  width: min(820px, 100%);
}

.igh-deepening-modal h2 {
  color: var(--igh-ink);
  font-family: inherit;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 42px 8px 0;
}

.igh-deepening-intro,
.igh-deepening-loading,
.igh-deepening-error {
  color: var(--igh-muted);
  font: 15px/1.6 Arial, sans-serif;
  margin: 0 0 18px;
}

.igh-deepening-error {
  color: #8a2f1b;
}

.igh-deepening-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.igh-deepening-actions .igh-button {
  min-width: 0;
  text-align: center;
  width: 100%;
}

.igh-deepening-route {
  background: #fbfaf7;
  border: 1px solid var(--igh-line);
  border-radius: 4px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.igh-deepening-route label {
  color: var(--igh-muted);
  font: 12px/1.3 Arial, sans-serif;
  text-transform: uppercase;
}

.igh-deepening-route select {
  background: #fff;
  border: 1px solid var(--igh-line);
  border-radius: 3px;
  color: var(--igh-ink);
  font: 14px/1.35 Arial, sans-serif;
  min-height: 38px;
  padding: 7px 8px;
  width: 100%;
}

.igh-deepening-results {
  border-top: 1px solid var(--igh-line);
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
}

.igh-deepening-result {
  background: #fbfaf7;
  border-left: 3px solid var(--igh-accent-dark);
  padding: 14px 16px;
}

.igh-deepening-result h3 {
  color: var(--igh-accent-dark);
  font: 700 14px/1.3 Arial, sans-serif;
  margin: 0 0 8px;
}

.igh-deepening-footer {
  border-top: 1px solid var(--igh-line);
  margin-top: 22px;
  padding-top: 14px;
  text-align: right;
}

.igh-modal-body p {
  color: var(--igh-ink);
  font: 15px/1.72 Arial, sans-serif;
  margin: 0 0 14px;
}

.igh-header {
  border-bottom: 1px solid var(--igh-line);
  margin-bottom: 18px;
  padding-bottom: 26px;
  text-align: center;
}

.igh-login-bar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin: -16px 0 10px;
}

.igh-mode-badge {
  color: var(--igh-muted);
  font: 12px/1.2 Arial, sans-serif;
}

.igh-widget[data-current-mode="user"] .igh-mode-badge {
  color: var(--igh-accent-dark);
  font-weight: 700;
}

.igh-title {
  font-family: inherit;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 auto 12px;
  max-width: 760px;
}

.igh-subtitle,
.igh-intro,
.igh-reflection,
.igh-disclaimer,
.igh-privacy,
.igh-mode-note,
.igh-question-counter {
  color: var(--igh-muted);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.igh-subtitle {
  font-size: 16px;
  margin: 0 auto 10px;
  max-width: 640px;
}

.igh-intro {
  margin: 0 auto;
  max-width: 620px;
}

.igh-mode-note {
  color: var(--igh-accent-dark);
  margin: 8px auto 0;
  max-width: 620px;
}

.igh-reflection {
  border-bottom: 1px solid var(--igh-line);
  border-top: 1px solid var(--igh-line);
  color: var(--igh-ink);
  font-family: inherit;
  font-size: 18px;
  line-height: 1.45;
  margin: 24px auto 0;
  max-width: 660px;
  padding: 16px 0;
}

.igh-controls {
  align-items: end;
  border-bottom: 1px solid var(--igh-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  margin: 0 auto 24px;
  padding-bottom: 16px;
  position: relative;
  z-index: 3;
}

.igh-login-panel {
  background: #fff;
  border: 1px solid var(--igh-line);
  border-radius: 4px;
  margin: -4px auto 22px;
  max-width: 520px;
  padding: 16px;
}

.igh-widget[data-login-only="true"][data-intro-visible="false"] {
  padding-top: 28px;
}

.igh-widget[data-login-only="true"][data-intro-visible="false"] .igh-chat-shell {
  margin: 0 auto;
  max-width: 560px;
}

.igh-widget[data-login-only="true"][data-intro-visible="false"] .igh-login-panel {
  margin: 0 auto;
}

.igh-widget[data-login-only="true"][data-intro-visible="false"] .igh-header,
.igh-widget[data-login-only="true"][data-intro-visible="false"] .igh-controls,
.igh-widget[data-login-only="true"][data-intro-visible="false"] .igh-question-panel,
.igh-widget[data-login-only="true"][data-intro-visible="false"] .igh-actions,
.igh-widget[data-login-only="true"][data-intro-visible="false"] .igh-about,
.igh-widget[data-login-only="true"][data-intro-visible="false"] .igh-privacy {
  display: none;
}

.igh-login-panel[hidden] {
  display: none;
}

.igh-login-panel h3 {
  font-family: Arial, sans-serif;
  font-size: 14px;
  margin: 0 0 12px;
}

.igh-login-fields {
  display: grid;
  gap: 10px;
}

.igh-login-fields label {
  color: var(--igh-muted);
  display: grid;
  font: 12px/1.3 Arial, sans-serif;
  gap: 5px;
  text-transform: uppercase;
}

.igh-login-fields input {
  background: var(--igh-field);
  border: 1px solid var(--igh-line);
  border-radius: 3px;
  color: var(--igh-ink);
  font: 15px/1.45 Arial, sans-serif;
  min-height: 38px;
  padding: 8px 10px;
}

.igh-login-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  margin-top: 14px;
}

.igh-field label {
  color: var(--igh-muted);
  display: block;
  font-family: Arial, sans-serif;
  font-size: 12px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.igh-visually-hidden {
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.igh-field select,
.igh-field textarea {
  background: var(--igh-field);
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--igh-ink);
  font: 15px/1.45 Arial, sans-serif;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.igh-controls .igh-intent-field {
  flex: 1 1 340px;
  max-width: 420px;
  min-width: 260px;
}

.igh-controls .igh-context-field {
  flex: 0 1 250px;
  min-width: 210px;
  opacity: 0.82;
}

.igh-controls .igh-field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--igh-line);
  border-radius: 0;
  min-height: 34px;
  padding: 6px 22px 6px 0;
}

.igh-field-help {
  color: var(--igh-muted);
  font: 12px/1.35 Arial, sans-serif;
  margin: 5px 0 0;
  max-width: 240px;
}

.igh-flags {
  align-items: center;
  display: flex;
  gap: 8px;
  min-height: 34px;
  pointer-events: auto;
  position: relative;
  z-index: 4;
}

.igh-flag {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--igh-ink);
  cursor: pointer;
  display: inline-flex;
  font: 22px/1 "Segoe UI Emoji", "Apple Color Emoji", Arial, sans-serif;
  height: 34px;
  justify-content: center;
  padding: 4px 2px 6px;
  pointer-events: auto;
  position: relative;
  z-index: 5;
  width: 34px;
}

.igh-flag svg {
  border-radius: 2px;
  display: block;
  height: 20px;
  width: 30px;
}

.igh-flag[aria-pressed="true"],
.igh-flag.igh-flag-active {
  border-bottom-color: var(--igh-accent-dark);
}

.igh-field textarea {
  min-height: 178px;
  resize: vertical;
}

.igh-field select:focus,
.igh-field textarea:focus,
.igh-login-fields input:focus,
.igh-flag:focus,
.igh-button:focus,
.igh-document-button:focus,
.igh-document-remove:focus,
.igh-text-button:focus {
  outline: 2px solid var(--igh-focus);
  outline-offset: 2px;
}

.igh-login-bar .igh-language-compact {
  gap: 5px;
  min-height: 24px;
}

.igh-login-bar .igh-language-compact .igh-flag {
  height: 24px;
  padding: 2px 1px 4px;
  width: 25px;
}

.igh-login-bar .igh-language-compact .igh-flag svg {
  height: 14px;
  width: 21px;
}

.igh-dialogue {
  background: #fff;
  border: 1px solid var(--igh-line);
  border-radius: 4px;
  margin: 18px 0;
  max-height: 460px;
  overflow: auto;
  padding: 16px;
}

.igh-documents {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}

.igh-documents[hidden] {
  display: none;
}

.igh-document {
  align-items: center;
  background: #f2efe8;
  border: 1px solid var(--igh-line);
  border-radius: 3px;
  color: var(--igh-accent-dark);
  display: inline-flex;
  font: 13px/1.2 Arial, sans-serif;
  gap: 7px;
  max-width: 100%;
  overflow: hidden;
  padding: 6px 7px 6px 9px;
}

.igh-document > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.igh-document-remove {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 2px;
  color: var(--igh-accent-dark);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: 700 16px/1 Arial, sans-serif;
  height: 20px;
  justify-content: center;
  padding: 0;
  width: 20px;
}

.igh-document-remove:hover {
  background: rgba(94, 77, 49, 0.12);
}

.igh-question-panel {
  background: var(--igh-field);
  border: 1px solid var(--igh-line);
  border-radius: 6px;
  margin: 0 auto;
  max-width: 760px;
  padding: 22px;
}

.igh-question-panel .igh-question-label {
  color: var(--igh-ink);
  font-family: inherit;
  font-size: 23px;
  line-height: 1.25;
  margin-bottom: 12px;
  text-transform: none;
}

.igh-question-counter {
  color: var(--igh-accent-dark);
  margin: -4px 0 10px;
}

.igh-question-panel textarea {
  border: 0;
  border-top: 1px solid var(--igh-line);
  border-radius: 0;
  font-size: 16px;
  min-height: 178px;
  padding: 16px 0;
}

.igh-question-panel textarea:focus {
  outline: 0;
}

.igh-question-tools {
  align-items: center;
  border-top: 1px solid var(--igh-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-top: 14px;
}

.igh-question-tools[hidden],
.igh-file[hidden] {
  display: none;
}

.igh-document-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--igh-accent-dark);
  border-radius: 3px;
  color: var(--igh-accent-dark);
  cursor: pointer;
  display: inline-flex;
  font: 700 13px/1 Arial, sans-serif;
  gap: 8px;
  min-height: 36px;
  padding: 9px 12px;
}

.igh-document-button span:first-child {
  font-size: 18px;
  line-height: 1;
}

.igh-document-button:hover {
  background: #f2efe8;
}

.igh-file-types {
  color: var(--igh-muted);
  font: 12px/1.4 Arial, sans-serif;
}

.igh-empty {
  color: var(--igh-muted);
  font-family: Arial, sans-serif;
  margin: 0;
}

.igh-message {
  border-top: 1px solid var(--igh-line);
  padding: 16px 0;
}

.igh-message:first-child {
  border-top: 0;
  padding-top: 0;
}

.igh-message strong {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.igh-message p,
.igh-answer p {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.igh-answer p + p {
  margin-top: 10px;
}

.igh-answer ul {
  font-family: Arial, sans-serif;
  line-height: 1.58;
  margin: 10px 0 14px 1.15rem;
  padding-left: 1.1rem;
}

.igh-answer li {
  margin: 7px 0;
  padding-left: 0.2rem;
}

.igh-answer h3 {
  color: var(--igh-ink);
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.3;
  margin: 18px 0 7px;
}

.igh-answer h3:first-child {
  margin-top: 0;
}

.igh-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.igh-button {
  background: var(--igh-accent-dark);
  border: 1px solid var(--igh-accent-dark);
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  font: 700 13px/1 Arial, sans-serif;
  min-height: 42px;
  min-width: 172px;
  padding: 13px 22px;
}

.igh-button[data-variant="secondary"] {
  background: transparent;
  color: var(--igh-accent-dark);
}

.igh-button:hover {
  background: var(--igh-accent);
  border-color: var(--igh-accent);
}

.igh-secondary-actions {
  align-items: center;
  display: flex;
  flex-basis: 100%;
  gap: 24px;
  justify-content: center;
  margin-top: 2px;
}

.igh-text-button {
  background: transparent;
  border: 0;
  color: var(--igh-accent-dark);
  cursor: pointer;
  font: 700 13px/1 Arial, sans-serif;
  padding: 6px 0;
}

.igh-text-button:hover {
  color: var(--igh-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.igh-icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--igh-accent-dark);
  border-radius: 50%;
  color: var(--igh-accent-dark);
  cursor: pointer;
  display: inline-flex;
  font: 700 24px/1 Arial, sans-serif;
  height: 42px;
  justify-content: center;
  position: relative;
  width: 42px;
}

.igh-icon-button:focus {
  outline: 2px solid var(--igh-focus);
  outline-offset: 2px;
}

.igh-tooltip {
  background: var(--igh-ink);
  border-radius: 3px;
  bottom: calc(100% + 8px);
  color: #fff;
  font: 12px/1.2 Arial, sans-serif;
  left: 50%;
  opacity: 0;
  padding: 7px 9px;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  transition: opacity 120ms ease;
  white-space: nowrap;
  z-index: 2;
}

.igh-icon-button:hover .igh-tooltip,
.igh-icon-button:focus .igh-tooltip {
  opacity: 1;
}

.igh-status {
  color: var(--igh-muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.igh-thinking {
  align-items: center;
  background: #f2efe8;
  border: 1px solid var(--igh-line);
  border-radius: 3px;
  color: var(--igh-accent-dark);
  display: inline-flex;
  font: 700 13px/1 Arial, sans-serif;
  gap: 8px;
  min-height: 32px;
  padding: 7px 10px;
}

.igh-thinking[hidden] {
  display: none;
}

.igh-thinking-dots {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.igh-thinking-dots span {
  animation: igh-thinking-pulse 900ms ease-in-out infinite;
  background: #2f7ea7;
  border-radius: 50%;
  display: block;
  height: 6px;
  opacity: 0.35;
  width: 6px;
}

.igh-thinking-dots span:nth-child(2) {
  animation-delay: 140ms;
}

.igh-thinking-dots span:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes igh-thinking-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.igh-progress {
  --igh-upload-progress: 0%;
  align-items: center;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.igh-progress[hidden] {
  display: none;
}

.igh-progress-ring {
  background: conic-gradient(
    #2f7ea7 0 var(--igh-upload-progress),
    #e5e0d8 var(--igh-upload-progress) 100%
  );
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(47, 126, 167, 0.12);
  display: block;
  height: 28px;
  width: 28px;
}

.igh-help {
  border-top: 1px solid var(--igh-line);
  margin-top: 18px;
  padding-top: 14px;
}

.igh-help p {
  color: var(--igh-muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 6px;
}

.igh-help strong {
  color: var(--igh-ink);
}

.igh-about {
  background: #f2efe8;
  border-left: 3px solid var(--igh-accent);
  margin: 26px auto 12px;
  max-width: 760px;
  padding: 14px 16px;
}

.igh-about h3 {
  color: var(--igh-ink);
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.25;
  margin: 0 0 6px;
}

.igh-about .igh-disclaimer {
  margin: 0;
}

.igh-file {
  height: 1px;
  left: -10000px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

@media (max-width: 760px) {
  .igh-widget {
    padding: 20px;
  }

  .igh-widget[data-gateway="home"] {
    padding: 28px 18px 0;
  }

  .igh-widget[data-gateway="home"]::before {
    display: none;
  }

  .igh-gateway-mark {
    height: 70px;
    width: 70px;
  }

  .igh-gateway-notice {
    align-items: flex-start;
    padding: 16px;
  }

  .igh-gateway-start {
    min-width: 0;
    width: 100%;
  }

  .igh-gateway-cards {
    display: block;
  }

  .igh-gateway-card {
    margin: 0 0 18px;
    min-height: 0;
  }

  .igh-gateway-footer {
    align-items: flex-start;
    flex-direction: column;
    margin-left: -18px;
    margin-right: -18px;
    padding: 20px 18px;
  }

  .igh-gateway-footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .igh-gateway-footer-links .igh-link-button + .igh-link-button {
    border-left: 0;
    padding-left: 0;
  }

  .igh-modal {
    padding: 28px 22px;
  }

  .igh-deepening-backdrop {
    align-items: stretch;
    padding: 14px;
  }

  .igh-deepening-modal {
    max-height: calc(100vh - 28px);
    padding: 26px 20px;
  }

  .igh-deepening-actions {
    grid-template-columns: 1fr;
  }

  .igh-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .igh-controls .igh-field {
    min-width: 0;
    width: 100%;
  }

  .igh-title {
    font-size: 34px;
  }

  .igh-question-panel {
    padding: 16px;
  }

  .igh-question-panel .igh-question-label {
    font-size: 20px;
  }

  .igh-secondary-actions {
    gap: 16px;
  }
}
