.telegram-card-v31{min-height:0;}
.telegram-pair-v31{display:grid;grid-template-columns:1fr 1fr;gap:16px;flex:1;min-height:180px;margin:0 0 16px;}
.telegram-shot-v31{min-height:0;display:flex;flex-direction:column;margin:0;}
.telegram-shot-v31 a{min-height:0;flex:1;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;border-radius:10px;background:#0e1721;cursor:zoom-in;}
.telegram-shot-v31 img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;}
.telegram-photo-v32 img{object-fit:contain;}
.telegram-shot-v31 a>span{position:absolute;right:9px;bottom:9px;display:grid;place-items:center;width:29px;height:29px;background:#f3f0e6;color:#283021;border-radius:50%;box-shadow:0 1px 8px #0003;font-size:17px;}
.telegram-shot-v31 figcaption{flex:none;font-size:11px;line-height:1.4;color:#6d7964;margin-top:8px;}
.telegram-shot-v31 a:focus-visible,.telegram-link-v31:focus-visible{outline:2px solid #637454;outline-offset:4px;}
.telegram-with-list-v31{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,.9fr);gap:24px;flex:1;min-height:220px;}
.telegram-actions-v31{margin:0;align-self:center;}
.telegram-actions-v31>div{border-top:1px solid #27302326;padding:14px 0;}
.telegram-actions-v31 dt{font-size:clamp(14px,2.4cqw,19px);line-height:1.3;}
.telegram-actions-v31 dd{margin:6px 0 0;font-size:clamp(12px,1.9cqw,15px);line-height:1.5;color:#6d7964;}
.telegram-link-v31{display:inline-flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #27302326;padding-top:13px;margin-top:10px;color:#34432d;font-size:13px;line-height:1.4;text-decoration:none;}
#telegram-viewer{box-sizing:border-box;width:min(900px,calc(100vw - 32px));max-width:none;max-height:92dvh;padding:0;border:0;border-radius:18px;color:#293126;background:#f6f4ee;overflow:hidden;box-shadow:0 20px 90px #0007;}
#telegram-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;}
#telegram-viewer::backdrop{background:#10170ed9;backdrop-filter:blur(8px);}
#telegram-viewer header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;border-bottom:1px solid #29312626;}
#telegram-viewer h3{font-size:18px;font-weight:400;line-height:1.35;margin:0;}
#telegram-viewer button{display:grid;place-items:center;flex:none;width:36px;height:36px;border:1px solid #29312633;border-radius:50%;background:transparent;color:inherit;font:20px Arial,sans-serif;cursor:pointer;}
#telegram-viewer button:disabled{opacity:.25;cursor:default;}
#telegram-viewer button:focus-visible{outline:2px solid #637454;outline-offset:3px;}
.telegram-viewer-scroll{overflow:auto;overscroll-behavior:contain;padding:22px;min-height:0;max-height:70dvh;text-align:center;background:#e9e7de;}
.telegram-viewer-scroll img{display:block;width:auto;max-width:100%;height:auto;margin:auto;border-radius:8px;}
#telegram-viewer footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 24px;font-size:12px;color:#68745e;border-top:1px solid #29312626;}
#telegram-viewer footer>div{display:flex;align-items:center;gap:16px;}
body.telegram-viewer-open{overflow:hidden;}
@media(min-width:761px) and (max-height:850px){.telegram-with-list-v31{gap:18px;}.telegram-actions-v31>div{padding:10px 0;}.telegram-actions-v31 dt{font-size:14px;}.telegram-actions-v31 dd{font-size:12px;}.telegram-pair-v31{gap:12px;}}
@media(max-width:760px){
 .telegram-pair-v31{flex:none;grid-template-columns:1fr;min-height:0;height:auto;gap:20px;margin-bottom:22px;}
 .telegram-pair-v31>.telegram-shot-v31{height:400px;}
 .telegram-shot-v31 figcaption{font-size:11px;}
 .telegram-with-list-v31{display:flex;flex-direction:column;gap:18px;}
 .telegram-with-list-v31>.telegram-shot-v31{height:430px;flex:none;max-width:100%;}
 .telegram-actions-v31{width:100%;}.telegram-actions-v31 dt{font-size:17px;}.telegram-actions-v31 dd{font-size:14px;}
 #telegram-viewer{width:calc(100vw - 16px);max-height:96dvh;border-radius:12px;}
 #telegram-viewer header{padding:13px 14px;gap:12px;}#telegram-viewer h3{font-size:15px;}
 .telegram-viewer-scroll{padding:10px;max-height:72dvh;}
 #telegram-viewer footer{padding:11px 14px;gap:8px;font-size:10px;}#telegram-viewer footer>div{gap:9px;}
}

.telegram-result-pair-v32{grid-template-columns:1fr;grid-template-rows:1fr 1fr;gap:12px;}
.telegram-result-pair-v32 .telegram-shot-v31 a{background:#e9e7de;}
@media(max-width:760px){.telegram-result-pair-v32>.telegram-shot-v31{height:auto;}.telegram-result-pair-v32 .telegram-shot-v31 a{aspect-ratio:1.8;flex:none;}}
