/* Isolated Telegram help popup; existing homepage and connection UI untouched. */
.home-screen .telegram-help-trigger{display:inline-grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;border:1px solid #c8a771;background:#14253b;color:#f0d49d;font-weight:800;font-size:20px;cursor:pointer}
.home-screen .telegram-help-trigger:hover,.home-screen .telegram-help-trigger:focus-visible{background:#34516d;outline:2px solid #c9a86f;outline-offset:2px}
.telegram-help-overlay[hidden],.telegram-help-lightbox[hidden]{display:none!important}
.telegram-help-overlay{position:fixed;inset:0;z-index:99990;display:grid;place-items:center;padding:20px;background:#030913d9;backdrop-filter:blur(5px)}
.telegram-help-modal{box-sizing:border-box;width:min(980px,100%);max-height:min(90vh,980px);overflow:auto;overscroll-behavior:contain;background:linear-gradient(155deg,#14243a,#071322 72%);border:1px solid #bc9862;box-shadow:0 24px 90px #000d;border-radius:16px;color:#e6edf4;font:15px/1.6 'Malgun Gothic',Arial,sans-serif}
.telegram-help-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 28px 18px;border-bottom:1px solid #3b506b}
.telegram-help-eyebrow{color:#d6b778;font-size:11px;letter-spacing:.16em}
.telegram-help-heading h2{color:#efd5a0;font-size:24px;margin:5px 0}
.telegram-help-heading p{color:#bfcbd9;margin:0}
#telegram-help-close,#telegram-help-lightbox-close{border:0;background:transparent;color:#e8edf7;font-size:32px;line-height:1;cursor:pointer;padding:5px 10px}
.telegram-help-content{display:grid;grid-template-columns:.85fr 1.15fr;gap:20px;padding:22px 28px}
.telegram-help-content h3{font-size:17px;color:#eecb8f;margin:0 0 16px}
.telegram-help-steps{border:1px solid #344b66;border-radius:12px;background:#14273d;padding:20px}
.telegram-help-steps ol{margin:0;padding-left:23px;display:grid;gap:18px}
.telegram-help-steps li::marker{color:#f1c77e;font-weight:bold}
#telegram-help-connect{background:linear-gradient(125deg,#345f8c,#213c60);color:#fff0ca;border:1px solid #94a8c0;border-radius:8px;cursor:pointer;font:inherit;font-weight:bold;width:100%;margin-top:24px;padding:11px}
.telegram-help-photos{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.telegram-help-photo{background:#102034;border:1px solid #506984;border-radius:10px;padding:8px;color:#cfdae7;cursor:zoom-in;min-width:0}
.telegram-help-photo img{display:block;width:100%;aspect-ratio:9/16;object-fit:contain;object-position:center top;border-radius:6px;background:#0d1723}
.telegram-help-photo span{display:block;font-size:12px;margin-top:8px}
.telegram-help-examples small{display:block;color:#a8bacd;margin-top:10px}
.telegram-help-footer{border-top:1px solid #34465e;padding:15px 28px 24px}
.telegram-help-footer p{font-size:12px;color:#b6c5d4;margin:0 0 12px}
.telegram-help-contact{padding:12px 14px;background:#223650;border:1px solid #556b80;border-radius:8px;color:#f0d59e}
.telegram-help-lightbox{position:fixed;inset:0;z-index:99999;background:#000e;display:flex;align-items:center;justify-content:center;padding:32px}
#telegram-help-lightbox-close{position:absolute;right:18px;top:15px}
.telegram-help-lightbox img{max-width:min(850px,95vw);max-height:92vh;object-fit:contain;border-radius:9px}
@media(max-width:720px){.telegram-help-overlay{padding:10px}.telegram-help-modal{max-height:88dvh}.telegram-help-heading{padding:16px}.telegram-help-heading h2{font-size:19px}.telegram-help-content{padding:14px;grid-template-columns:1fr}.telegram-help-steps{padding:15px}.telegram-help-steps ol{gap:10px}.telegram-help-footer{padding:14px}.telegram-help-photo img{aspect-ratio:9/15}.home-screen .telegram-help-trigger{width:30px;height:30px}}

/* Header help icon: remove inherited button padding and the double-ring effect. */
.home-screen .home-header-actions #telegram-help-open{
 appearance:none!important;box-sizing:border-box!important;
 width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
 padding:0!important;margin:0!important;flex:0 0 38px!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 border:1px solid #d2ad69!important;border-radius:50%!important;
 background:#11243a!important;color:#f1d39c!important;
 box-shadow:none!important;outline:0;font:700 19px/1 Arial,sans-serif!important;
 text-shadow:none!important;vertical-align:middle;cursor:pointer;
}
.home-screen .home-header-actions #telegram-help-open:hover{
 background:#254361!important;border-color:#f3cf91!important;
}
.home-screen .home-header-actions #telegram-help-open:focus-visible{
 outline:2px solid #f3cf91!important;outline-offset:3px!important;
}
@media(max-width:700px){.home-screen .home-header-actions #telegram-help-open{
 width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;flex-basis:32px!important;font-size:17px!important;
}}

/* High-visibility help affordance, restricted to the Telegram header button. */
.home-screen .home-header-actions #telegram-help-open{
 background:linear-gradient(145deg,#ffe2a2,#d5a64c)!important;
 color:#13243a!important;
 border:2px solid #f8dfac!important;
 box-shadow:0 0 0 3px #09192bea,0 0 15px #e9b75e95!important;
 font-weight:900!important;
}
.home-screen .home-header-actions #telegram-help-open:hover{
 background:#ffe8b6!important;
 box-shadow:0 0 0 3px #09192bea,0 0 22px #f5c778bb!important;
}

/* Compact one-screen desktop dialog: overflow stays available on shorter screens. */
@media(min-width:721px){
 .telegram-help-overlay{padding:12px}
 .telegram-help-modal{width:min(1060px,100%);max-height:calc(100dvh - 24px)}
 .telegram-help-heading{padding:15px 22px 12px;min-height:0!important}
 .telegram-help-heading h2{font-size:22px;margin:2px 0}
 .telegram-help-heading p{font-size:13px}
 .telegram-help-content{padding:14px 22px 18px;gap:18px;align-items:stretch}
 .telegram-help-steps{display:flex;flex-direction:column;padding:17px 18px}
 .telegram-help-steps ol{gap:12px}
 .telegram-help-steps #telegram-help-connect{margin-top:16px;padding:9px}
 .telegram-help-left-info{margin-top:auto;padding-top:18px;display:grid;gap:10px}
 .telegram-help-photos{gap:10px}
 .telegram-help-photo{padding:7px}
 .telegram-help-photo img{height:min(53dvh,490px);aspect-ratio:auto!important;object-fit:contain;margin-top:0!important}
 .telegram-help-photo span{margin-top:5px}
 .telegram-help-examples small{margin-top:6px}
}
.telegram-help-caution{color:#b7c8db;font-size:12px;line-height:1.55;margin:0}
.telegram-help-left-info .telegram-help-contact{font-size:13px;line-height:1.6}
@media(max-width:720px){
 .telegram-help-left-info{display:grid;gap:10px;margin-top:16px}
 .telegram-help-photos img{margin-top:0!important}
}
