#intake-guide {
  position: fixed;
  z-index: 90;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  color: var(--text);
  font: 1rem/1.45 var(--font-sans, system-ui, sans-serif);
}
#intake-guide [hidden] { display: none; }
#intake-guide button, #intake-guide input { font: inherit; }
#intake-guide button { cursor: pointer; }
#intake-guide :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#intake-guide .ig-launch, #intake-guide .ig-form button {
  border: 0; background: var(--accent); color: var(--on-accent); font-weight: 650;
  padding: .6rem 1rem; border-radius: .55rem; min-height: 44px;
}
#intake-guide .ig-launch { border-radius: 2rem; padding-inline: 1.4rem; box-shadow: 0 3px 14px #102c352b; }
#ig-panel {
  display: flex; flex-direction: column; width: min(24rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem); background: var(--surface); border: 1px solid var(--border);
  border-radius: .9rem; box-shadow: 0 10px 36px #102c3533; overflow: hidden;
}
#ig-panel header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .3rem .5rem .3rem 1rem; border-bottom: 1px solid var(--border); }
#ig-panel .ig-close { font-size: 1.4rem; background: transparent; color: var(--text); border: 0; width: 44px; height: 44px; }
#ig-panel .ig-body { overflow-y: auto; padding: 1rem; overscroll-behavior: contain; }
#ig-panel p { margin: 0 0 .8rem; }
#ig-panel .ig-answer a { display: block; margin: .35rem 0; text-decoration: underline; color: var(--accent); }
#ig-panel .ig-choices { display: flex; flex-wrap: wrap; gap: .45rem; margin: .75rem 0 1rem; }
#ig-panel .ig-choices button { text-align: left; padding: .4rem .65rem; border: 1px solid var(--border); border-radius: .5rem; color: var(--text); background: var(--surface-2); font-size: .9rem; }
#ig-panel .ig-form label { display: block; font-weight: 600; margin-bottom: .3rem; }
#ig-panel .ig-form div { display: flex; gap: .4rem; }
#ig-panel input { min-width: 0; flex: 1; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: .5rem; padding: .5rem; }
@media print { #intake-guide { display: none; } }
