/* Bridge legacy utilities to the same roles as the named app components. */
.pt-app { font-family:var(--pt-font-family); font-size:var(--pt-type-body); line-height:var(--pt-leading-body); }
.pt-app :is(button,input,select,textarea) { font-family:inherit; }
.pt-app :is(code,pre,.font-mono) { font-family:var(--pt-font-mono); }
.pt-app :is(h1,h2,h3,h4) { line-height:var(--pt-leading-heading); font-weight:var(--pt-weight-heading); overflow-wrap:anywhere; min-width:0; }
.pt-app :is(strong,b) { font-weight:var(--pt-weight-action); }
.pt-app.search-entry h1 { font-size:var(--pt-type-guest-title); line-height:var(--pt-leading-title); }
.pt-app:not(.search-entry) h1 { font-size:var(--pt-type-title); line-height:var(--pt-leading-title); }
.pt-app .text-xs { font-size:var(--pt-type-caption); line-height:var(--pt-leading-caption); }
.pt-app .text-sm { font-size:var(--pt-type-helper); line-height:var(--pt-leading-body); }
.pt-app .text-base { font-size:var(--pt-type-body); line-height:var(--pt-leading-body); }
.pt-app .text-lg { font-size:var(--pt-type-subheading); line-height:var(--pt-leading-heading); }
.pt-app .text-xl { font-size:var(--pt-type-section); line-height:var(--pt-leading-heading); }
.pt-app .text-2xl { font-size:var(--pt-type-price); line-height:var(--pt-leading-heading); }
.pt-app .text-3xl { font-size:var(--pt-type-title); line-height:var(--pt-leading-title); }
.pt-app .text-4xl { font-size:var(--pt-type-display); line-height:var(--pt-leading-title); }
.pt-app .font-normal { font-weight:var(--pt-weight-regular); }
.pt-app .font-medium { font-weight:var(--pt-weight-medium); }
.pt-app .font-semibold { font-weight:var(--pt-weight-action); }
.pt-app :is(.font-bold,.font-extrabold) { font-weight:var(--pt-weight-heading); }
.pt-app :is(.leading-5,.leading-6,.leading-relaxed) { line-height:var(--pt-leading-body); }
.pt-app .text-xs:is(.leading-5,.leading-6) { line-height:var(--pt-leading-caption); }
.pt-app :is(.btn-primary,.btn-secondary) { border-radius:var(--pt-control-radius); font-size:var(--pt-type-helper); font-weight:var(--pt-weight-action); }
.pt-app .link { border-radius:var(--pt-control-radius); }
.pt-app :is(.rounded,.rounded-sm,.rounded-md):where(:not(input[type=checkbox],input[type=radio])) { border-radius:var(--pt-control-radius); }
.pt-app :is(.rounded-lg,.rounded-xl,.rounded-2xl):where(:not(input[type=checkbox],input[type=radio])) { border-radius:var(--pt-radius); }
.pt-app :is(button,a,input,select,textarea).rounded-lg,
.pt-app :is(button,a,input,select,textarea).rounded-xl { border-radius:var(--pt-control-radius); }
.pt-app .rounded-full:where(:not(input[type=checkbox],input[type=radio])) { border-radius:var(--pt-badge-radius); }
/* These are circular markers, not text pills or clickable controls. */
.pt-app :is(.h-8.w-8,.h-10.w-10).rounded-full { border-radius:50%; }
.pt-app input[type=checkbox].rounded { border-radius:var(--pt-checkbox-radius); }
.pt-app :is(.rounded-l,.rounded-l-md) { border-radius:var(--pt-control-radius) 0 0 var(--pt-control-radius); }
.pt-app :is(.rounded-r,.rounded-r-md) { border-radius:0 var(--pt-control-radius) var(--pt-control-radius) 0; }
:where(.pt-app) :where(button:not(.sr-only):not([hidden])) { min-height:var(--pt-min-target); }
.pt-app :is(input,select,textarea):not([type=checkbox],[type=radio],[type=range],[type=color],[type=hidden],[type=submit],[type=button],[type=reset],[type=file]) { font-size:var(--pt-type-body); }
/* Compact forms keep their own geometry; native legacy fields get a safe floor. */
:where(.pt-app) :where(input[type=text],input[type=email],input[type=password],input[type=search],input[type=tel],input[type=number],input[type=url],input:not([type]),select,textarea) { min-height:var(--pt-input-height); }
.pt-app input[type=range], .pt-app input[type=color] { font-size:inherit; }
.pt-app .search-home__saving { max-width:100%; white-space:normal; }
.pt-app .search-home__guidelines summary { min-height:var(--pt-min-target); line-height:var(--pt-leading-caption); padding-block:10px; }
.pt-app :is(.credit-composer__suggest,.credit-composer__undo,.credit-composer__back,.credit-composer__details summary) { min-height:var(--pt-min-target); }
/* Keep the shared consent client unchanged; only the app adopts app roles. */
.pt-app #profiletrace-cookie-settings { font-family:var(--pt-font-family)!important; font-size:var(--pt-type-body)!important; line-height:var(--pt-leading-body)!important; border-radius:var(--pt-radius)!important; }
.pt-app #profiletrace-cookie-settings button { border-radius:var(--pt-control-radius)!important; min-height:var(--pt-min-target); font-size:var(--pt-type-helper); }
@media(max-width:600px) {
  .pt-app:not(.search-entry) h1 { font-size:var(--pt-type-title-mobile); }
}
@media(min-width:640px) {
  .pt-app .sm\:text-sm { font-size:var(--pt-type-helper); line-height:var(--pt-leading-body); }
  .pt-app .sm\:rounded-md { border-radius:var(--pt-control-radius); }
  .pt-app .sm\:rounded-lg { border-radius:var(--pt-radius); }
}
@media(min-width:768px) {
  .pt-app .md\:rounded-lg { border-radius:var(--pt-radius); }
}
