/* Refinamiento editorial SOLO para aplicaciones */
:root{
  --aa-app-paper:#f8efe4;
  --aa-app-panel:#fffaf4;
  --aa-app-muted:#765f53;
  --aa-app-line:#dfcbbb;
  --aa-app-rust:#b74325;
}
body{
  font-size:14.5px;
}
body > h1{
  font-size:clamp(1.35rem,2vw,1.8rem)!important;
  line-height:1.18!important;
  margin:.35rem .75rem!important;
  letter-spacing:-.025em!important;
}
h2{font-size:1.02rem!important;line-height:1.25!important}
h3{font-size:.96rem!important;line-height:1.3!important}
p,li,label,.note,.legend,.row span{line-height:1.45}
button,.button,.f-btn,select,input:not([type=range]):not([type=checkbox]):not([type=radio]){
  font-size:.88rem!important;
}
#sidebar{
  width:min(290px,34vw);
  padding:15px!important;
  gap:10px!important;
}
#sidebar h2{margin-top:3px}
#sidebar .note{font-size:.76rem}
#viewport{min-width:0}
body.aa-app-embedded > h1{display:none!important}
body.aa-app-embedded #sidebar{width:290px;max-width:36%}
@media(max-width:760px){
  body.aa-app-embedded{font-size:14px}
  body.aa-app-embedded #sidebar{max-width:none;width:100%;padding:12px!important}
}


/* Corrección solicitada: reducir la tipografía SOLO dentro de aplicaciones */
body, .app, .app-container, .workspace, #app{
  font-size:13.5px!important;
  line-height:1.45!important;
}
h1, body > h1, .app h1, .app-container h1, .workspace h1,
.title, .section-title{
  font-size:clamp(1.25rem,1.8vw,1.55rem)!important;
  line-height:1.16!important;
  letter-spacing:-.025em!important;
}
h2,.app h2,.app-container h2,.workspace h2{
  font-size:1.02rem!important;
  line-height:1.22!important;
}
h3,.app h3,.app-container h3,.workspace h3{
  font-size:.92rem!important;
  line-height:1.25!important;
}
h4,h5,h6{font-size:.86rem!important;line-height:1.25!important}
p,li,label,small,td,th,.note,.legend,.description,.help-text{
  font-size:.84rem!important;
  line-height:1.42!important;
}
button,.button,[role=button],input,select,textarea{
  font-size:.82rem!important;
  line-height:1.3!important;
}
#sidebar h1,#sidebar .title{font-size:1.25rem!important}
#sidebar h2{font-size:.98rem!important}
#sidebar h3{font-size:.9rem!important}
#sidebar label,#sidebar .note,#sidebar p{font-size:.8rem!important}
@media(max-width:760px){
  body, .app, .app-container, .workspace, #app{font-size:13px!important}
  h1,body > h1,.app h1,.app-container h1,.workspace h1,.title,.section-title{font-size:1.22rem!important}
  h2,.app h2,.app-container h2,.workspace h2{font-size:.98rem!important}
  p,li,label,small,td,th{font-size:.82rem!important}
}
