/* Minimal launch/error shell. The application styles load only after authorization. */
:root.entry-loading{color-scheme:dark;--entry-bg:#111212}
:root.entry-loading[data-theme="dark-blue"]{--entry-bg:#101722}
:root.entry-loading[data-theme="white"]{color-scheme:light;--entry-bg:#f5f6f8}
html.entry-loading,.entry-loading body{width:100%;height:100%;margin:0;overflow:hidden;background:var(--entry-bg)}
/* Let WebViews paint the first screen normally underneath a solid launch cover.
   Hiding the scroll tree with visibility can leave cached layers unpainted. */
html.entry-loading:not(.entry-failed)::after{content:"";position:fixed;inset:0;z-index:2147483647;background:var(--entry-bg);pointer-events:auto}
.entry-loading #toast{visibility:hidden!important}
.entry-loading :is(.category-selection,.nav-selection){transition:none!important}
.entry-error{box-sizing:border-box;width:100%;height:100dvh;padding:max(14px,var(--telegram-safe-top,0px)) 14px 25px;background:var(--entry-bg);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.entry-error .empty-state{box-sizing:border-box;display:grid;place-items:center;min-height:280px;padding:20px;text-align:center;color:#84938c}
.entry-error h2{margin:0;font-size:21px;line-height:27px;font-weight:700;letter-spacing:-.5px}
.entry-error p{margin:7px 0 0;font-size:12px;line-height:normal}
