/* PREA Enterprise progressive enhancements. Loaded independently of Vite so portable builds retain core UX. */
.prea-form-label{display:block;margin-bottom:.5rem;font-weight:800;color:var(--prea-text,#101828)}
.prea-form-control{width:100%;min-height:3rem;border:1px solid var(--prea-border,#d7dee8);border-radius:1rem;background:var(--prea-surface,#fff);padding:.78rem 1rem;color:var(--prea-text,#101828);font:inherit;outline:none;transition:border-color .15s,box-shadow .15s}
textarea.prea-form-control{min-height:7rem;resize:vertical}
.prea-form-control:focus{border-color:#1d5dbe;box-shadow:0 0 0 3px rgba(29,93,190,.13)}
.prea-form-help{display:block;margin-top:.45rem;color:var(--prea-text-muted,#667085);font-size:.82rem;line-height:1.45}
.prea-form-error{display:block;margin-top:.4rem;color:#b42318;font-size:.82rem;font-weight:700}
.support-chat{display:flex;flex-direction:column;gap:.7rem;max-height:21rem;overflow:auto;padding:.25rem .2rem 1rem;scroll-behavior:smooth}
.support-chat__bubble{max-width:88%;border-radius:1.1rem;padding:.75rem .9rem;line-height:1.55;font-size:.92rem;white-space:pre-wrap}
.support-chat__bubble--assistant{align-self:flex-start;background:var(--prea-surface-soft,#f4f7fb);color:var(--prea-text,#101828)}
.support-chat__bubble--user{align-self:flex-end;background:#1755a6;color:#fff}
.support-chat__meta{font-size:.72rem;color:var(--prea-text-muted,#667085);margin-top:.15rem}
.support-chat__form{display:grid;grid-template-columns:1fr auto;gap:.6rem;border-top:1px solid var(--prea-border,#dde3ec);padding-top:1rem}
.support-chat__input{min-width:0;border:1px solid var(--prea-border,#d7dee8);border-radius:1rem;padding:.72rem .85rem;background:var(--prea-surface,#fff);color:var(--prea-text,#101828)}
.support-chat__send{border:0;border-radius:1rem;background:#1755a6;color:#fff;padding:.72rem 1rem;font-weight:800;cursor:pointer}
.support-chat__send:disabled{opacity:.55;cursor:wait}
.prea-embed-grid{display:grid;gap:1.25rem;margin-top:2rem}
.prea-embed-card{overflow:hidden;border:1px solid var(--prea-border,#d7dee8);border-radius:1rem;background:var(--prea-surface,#fff)}
.prea-embed-card iframe{display:block;width:100%;border:0;min-height:166px}
.prea-embed-card--video iframe{aspect-ratio:16/9;min-height:0}
.prea-embed-card__caption{padding:.85rem 1rem;color:var(--prea-text-muted,#667085);font-size:.9rem}
.prea-install-button[hidden]{display:none!important}
@media(max-width:767px){
  body{padding-bottom:env(safe-area-inset-bottom)}
  .support-launcher{bottom:calc(1rem + env(safe-area-inset-bottom));right:1rem;left:1rem}
  .support-panel{position:fixed!important;inset:auto 0 0 0!important;width:100%!important;max-width:none!important;max-height:82dvh;border-radius:1.4rem 1.4rem 0 0!important;padding-bottom:env(safe-area-inset-bottom);overflow:auto}
  .support-launcher__button{margin-left:auto}
  .prea-mobile-bottom-actions{position:sticky;bottom:0;z-index:20;margin-inline:-1rem;padding:.65rem 1rem calc(.65rem + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--prea-surface,#fff) 94%,transparent);backdrop-filter:blur(14px);border-top:1px solid var(--prea-border,#d7dee8)}
}

/* Native-app-style mobile navigation. Hidden on larger screens. */
.prea-mobile-app-nav{display:none}
@media(max-width:767px){
  body{padding-bottom:calc(4.8rem + env(safe-area-inset-bottom))}
  .prea-mobile-app-nav{position:fixed;z-index:45;left:.55rem;right:.55rem;bottom:calc(.45rem + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;gap:.15rem;border:1px solid color-mix(in srgb,var(--prea-border,#d7dee8) 86%,transparent);border-radius:1.45rem;background:color-mix(in srgb,var(--prea-surface,#fff) 94%,transparent);padding:.42rem .35rem;box-shadow:0 18px 55px rgba(7,26,51,.2);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
  .prea-mobile-app-nav__item{appearance:none;border:0;background:transparent;color:var(--prea-text-muted,#667085);min-width:0;min-height:3.55rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.24rem;border-radius:1rem;font:inherit;font-size:.67rem;font-weight:800;text-decoration:none;cursor:pointer}
  .prea-mobile-app-nav__item svg{width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .prea-mobile-app-nav__item.is-active{background:var(--prea-surface-soft,#eef5fb);color:#1755a6}
  .prea-mobile-app-nav__item--primary{position:relative;color:#1755a6}
  .prea-mobile-app-nav__primary-icon{display:grid;place-items:center;width:2.25rem;height:2.25rem;margin-top:-1.15rem;border:4px solid var(--prea-surface,#fff);border-radius:999px;background:#1755a6;color:#fff;font-size:1rem;box-shadow:0 8px 22px rgba(23,85,166,.28)}
  .support-launcher{bottom:calc(5.5rem + env(safe-area-inset-bottom));}
  .support-panel{padding-bottom:calc(.5rem + env(safe-area-inset-bottom));}
}
