/* Only containing wrappers on the verified APP page; never hide a theme header/footer. */
body.tm-app-page [data-tm-app-wrapper] {
    display: block;
    position: static;
    float: none;
    inline-size: 100%;
    max-inline-size: none;
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body.tm-app-page [data-tm-app-wrapper]::before,
body.tm-app-page [data-tm-app-wrapper]::after {
    content: none;
}
/* Restore HTML defaults inside the APP before the original, scoped frontend rules. */
#tm-app :where(header,main,footer,section,article,aside,nav,div,h1,h2,h3,h4,h5,h6,p,a,span,strong,b,em,i,small,ul,ol,li,figure,figcaption,picture,img,table,thead,tbody,tr,th,td,br,hr,dialog,details,summary,label,input,button,select,textarea,form,time) {
    all: revert;
    font-family: inherit;
}
#tm-app {
    box-sizing: border-box;
    inline-size: 100%;
    min-inline-size: 0;
    min-block-size: 100vh;
    min-block-size: 100dvh;
    isolation: isolate;
    direction: ltr;
    text-align: left;
    text-transform: none;
    text-shadow: none;
    letter-spacing: normal;
    line-height: normal;
    font-size: 16px;
    margin: 0;
    padding: 0;
}
#tm-app [hidden] { display: none !important; }
/* Installation controls reused from APP 2.0, scoped to its own root. */
#tm-app .install-primary{background:var(--blue);border-color:var(--blue);color:#fff}
#tm-app .full-website-access #install-open{font-size:11px;white-space:nowrap;padding:6px 10px}
#tm-app .install-help{max-height:calc(100dvh - 32px);overflow:auto}
#tm-app .install-help p,#tm-app .install-help li{font-size:14px;line-height:1.6}
#tm-app .install-help ol{padding-left:22px}
#tm-app .install-help li{margin-bottom:10px}
#tm-app .install-help [data-install-status]:empty{display:none}
