/* Shared text layout, loaded after Studio / Player styles. */
.uch-scene-layout{ -webkit-text-size-adjust:100%;text-size-adjust:100%; }
.uch-scene-layout .u-choice-text-preview,
.uch-scene-layout .u-test-choice-text,
.uch-scene-layout .up-choice-text{
 box-sizing:border-box!important;padding:calc(14 * var(--uch-scene-unit,1px))!important;
 white-space:pre-wrap!important;letter-spacing:normal!important;word-spacing:normal!important;
 text-transform:none!important;overflow-wrap:normal!important;word-break:normal!important;
}
.uch-scene-layout .u-choice-inline:not(.u-hole-inline){
 font:inherit!important;line-height:inherit!important;padding:0!important;border:0!important;margin:0!important;
}
.uch-scene-layout .u-hole-inline,
.uch-scene-layout .up-hole-input,
.uch-scene-layout .u-test-hole-input{
 font:inherit!important;font-weight:inherit!important;line-height:1.15!important;
 box-sizing:content-box!important;display:inline-block!important;vertical-align:baseline!important;
 margin:0 .02em!important;padding:.08em calc(3 * var(--uch-scene-unit,1px))!important;
 border:calc(1 * var(--uch-scene-unit,1px)) solid rgba(20,184,166,.42)!important;
}
.uch-scene-layout .u-hole-inline{white-space:nowrap!important;overflow:hidden!important;}
.uch-scene-layout .u-page-text-edit,
.uch-scene-layout .up-page-text,
.uch-scene-layout .u-test-page-text:not(.u-test-page-button){line-height:1.18!important;}
.uch-scene-layout .u-page-text-edit p,.uch-scene-layout .u-page-text-edit div,
.uch-scene-layout .up-page-text p,.uch-scene-layout .up-page-text div,
.uch-scene-layout .u-test-page-text p,.uch-scene-layout .u-test-page-text div{
 margin:0!important;line-height:inherit!important;
}
.uch-scene-layout .u-page-text-edit :not([data-uch-base-font]),
.uch-scene-layout .up-page-text :not([data-uch-base-font]),
.uch-scene-layout .u-test-page-text :not([data-uch-base-font]){font-size:inherit!important;}
.uch-scene-layout .u-exercise-check-object>button,
.uch-scene-layout .u-test-exercise-check,
.uch-scene-layout .up-exercise-check,
.uch-scene-layout .u-page-button>button,
.uch-scene-layout .u-test-page-button>button,
.uch-scene-layout [data-page-button]{
 font-family:Dosis,Arial,sans-serif!important;font-weight:700!important;line-height:1!important;
 letter-spacing:normal!important;text-transform:none!important;
 padding:0 calc(6 * var(--uch-scene-unit,1px))!important;
}
.uch-scene-layout .u-text-content,.uch-scene-layout .up-text-object,.uch-scene-layout .u-test-text-object{
 padding:calc(3 * var(--uch-scene-unit,1px))!important;
}
.uch-scene-layout .u-message-stage-copy,.uch-scene-layout .up-transparent-message .up-message-copy{
 padding:calc(6 * var(--uch-scene-unit,1px))!important;line-height:1.25!important;
}

/* Editor selection guides must not subtract pixels from the text box. */
.u-stage.uch-scene-layout .u-choice-text-object{border:0!important;outline:1px dashed rgba(45,212,191,.8);}

/* Apparence commune des boutons conçus par l’auteur. */
.uch-scene-layout .u-custom-game-button{
 background:var(--uch-button-background)!important;color:var(--uch-button-color)!important;
 font-family:var(--uch-button-font-family,Dosis)!important;
 border:var(--uch-button-border-width,0px) solid var(--uch-button-border-color,transparent)!important;
 border-radius:var(--uch-button-radius,8px)!important;box-shadow:var(--uch-button-shadow,none)!important;
 box-sizing:border-box!important;
}
/* Le retour suit la largeur logique du plateau ; le lecteur le réduit avec tout le jeu. */
.uch-scene-layout .u-stage-nav.u-stage-back,.uch-scene-layout .u-test-nav.u-test-context-back,
.uch-scene-layout .u-stage-back .u-control-icon,.uch-scene-layout .u-test-context-back .u-control-icon{
 width:var(--uch-nav-size,calc(28 * var(--uch-scene-unit,1px)))!important;height:var(--uch-nav-size,calc(28 * var(--uch-scene-unit,1px)))!important;
 min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
}
