/* Loaded after the existing glass palette so focus and compact sizing stay consistent. */
#lgwRoot { height:min(1200px, calc(100dvh - 16px)); bottom:8px; }
#lgwRoot, #lgwRoot .lgw-panel { outline:none; }
#lgwRoot .lgw-input,
#lgwRoot .lgw-input:focus-within,
#lgwRoot .lgw-fld input,
#lgwRoot .lgw-fld input:focus,
#lgwRoot .lgw-fld textarea,
#lgwRoot .lgw-fld textarea:focus {
  outline:none!important;
  border-color:rgba(255,255,255,.16)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
#lgwRoot .lgw-input textarea:focus,
#lgwRoot .lgw-input textarea:focus-visible { outline:none!important; box-shadow:none!important; }
#lgwRoot .lgw-fld.lgw-bad input,
#lgwRoot .lgw-fld input[aria-invalid="true"] { border-color:#f99!important; }
#lgwRoot .lgw-body > .lgw-msg:has(> .lgw-lead) { animation:none; }
#lgwRoot .lgw-status:empty { display:none; }
#lgwRoot.lgw-form-visible .lgw-form-entry,
#lgwRoot.lgw-form-visible [data-application-entry],
#lgwRoot.lgw-applied .lgw-form-entry,
#lgwRoot.lgw-applied [data-application-entry] { display:none; }
#lgwRoot .lgw-application-notice .lgw-ok { width:100%; max-width:100%; }
#lgwRoot .lgw-application-notice .lgw-okt { line-height:1.8; }
.contact-form-card.is-applied .contact-fields,
.contact-form-card.is-applied .contact-submit,
.contact-form-card.is-applied .contact-submit-status:not(#contact-status) { display:none; }
.contact-form-card.is-applied #contact-status { font-size:18px; line-height:1.8; margin:24px 0; }
#lgwRoot .lgw-wait-dots {
  display:inline-block; width:3ch; vertical-align:baseline;
  font-family:ui-monospace,monospace;
  animation:lgwWaitingDots 1.35s steps(1,end) infinite;
}
@keyframes lgwWaitingDots {
  0%,100% { clip-path:inset(0 2ch 0 0); }
  33.333% { clip-path:inset(0 1ch 0 0); }
  66.666% { clip-path:inset(0 0 0 0); }
}
/* Preserve the single-column form and keep its action visible on laptop screens. */
@media (max-height:1000px) {
  #lgwRoot .lgw-hd { padding:10px 16px; }
  #lgwRoot .lgw-body { padding:10px 16px 8px; }
  #lgwRoot .lgw-lead .lgw-lh { padding:12px 16px 8px!important; }
  #lgwRoot .lgw-lead .lgw-lb { padding:0 16px 8px!important; }
  #lgwRoot .lgw-fld { margin-bottom:7px!important; }
  #lgwRoot .lgw-fld label { margin-bottom:3px!important; line-height:18px; }
  #lgwRoot .lgw-fld input,#lgwRoot .lgw-fld textarea {
    min-height:34px; padding:6px 10px!important; line-height:20px;
  }
  #lgwRoot .lgw-fld textarea { min-height:50px; }
  #lgwRoot .lgw-consent { margin:2px 0 4px!important; }
  #lgwRoot .lgw-lf { flex-direction:row!important; align-items:center; padding:0 16px 12px!important; }
  #lgwRoot .lgw-skip { order:0; flex:none; }
  #lgwRoot .lgw-act { min-height:38px; padding:8px 10px; }
  #lgwRoot .lgw-ft { padding:7px 12px 9px; }
  #lgwRoot .lgw-form-entry { margin-bottom:5px; }
  #lgwRoot .lgw-legal { margin-top:5px; }
}
@media (max-height:760px) {
  #lgwRoot .lgw-fld { margin-bottom:4px!important; }
  #lgwRoot .lgw-fld label { margin-bottom:2px!important; line-height:16px; }
  #lgwRoot .lgw-fld input,#lgwRoot .lgw-fld textarea {
    min-height:30px; padding:5px 10px!important; line-height:18px;
  }
  #lgwRoot .lgw-fld textarea { min-height:46px; }
}
@media (max-width:640px) {
  #lgwRoot { height:100dvh; bottom:0; }
}
@media (prefers-reduced-motion:reduce) {
  #lgwRoot .lgw-wait-dots { animation:none; clip-path:none; }
}
