/* #714: Telegram as an opt-in app inside the #202/#383 phone renderer.
 * Android and iOS follow the real app layouts (chat list, chat, info, contacts, settings). */
.tgp__app{height:100%;min-height:0;position:relative;display:flex;flex-direction:column;background:#fff;color:#000;font:400 12.5px/1.35 Roboto,Inter,Arial,sans-serif;overflow:hidden}
.tgp__app.is-ios{font-family:-apple-system,"SF Pro Text",Inter,Arial,sans-serif;background:#fff}
.tgp__app *{box-sizing:border-box}
.tgp__app button,.tgp__app input{font:inherit;color:inherit}
.tgp__app button{cursor:pointer;margin:0}
.tgp__app button:focus-visible,.tgp__app input:focus-visible{outline:3px solid #f1c96e;outline-offset:-2px}
.tgp__ic{display:inline-grid;place-items:center;width:1.5em;height:1.5em;flex:0 0 auto;font-style:normal}
.tgp__ic svg{width:100%;height:100%;display:block}
.tgp__bar{display:flex;align-items:center;gap:.45em;flex:0 0 auto;min-height:3.7em;padding:.3em .55em;background:#4f789c;color:#fff}
.tgp__bar-t{flex:1;min-width:0;font-size:1.35em;font-weight:500;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tgp__bar .tgp__barbtn,.tgp__bar .tgp__back{background:transparent;border:0;color:#fff;padding:.2em;display:inline-grid;place-items:center;width:2.4em;height:2.4em}
.tgp__bar .tgp__barbtn .tgp__ic,.tgp__bar .tgp__back .tgp__ic{width:1.7em;height:1.7em}
.tgp__who{background:transparent;border:0;padding:0;display:grid}
.tgp__person{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.25}
.tgp__person strong{display:flex;align-items:center;gap:.25em;font-size:1.1em;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff}
.tgp__person small{font-size:.85em;color:#d3e4f2}
.tgp__lockic{width:.95em;height:.95em;color:#4cc15c;margin-right:.1em;vertical-align:-.1em}
.tgp__avatar{width:3.9em;height:3.9em;display:grid;place-items:center;flex:0 0 auto;color:#fff;border-radius:50%;font-weight:600;font-size:1em}
.tgp__avatar.is-sm{width:2.9em;height:2.9em;font-size:.82em}
.tgp__avatar.is-lg{width:4.4em;height:4.4em;font-size:1.1em}
.tgp__avatar.is-xl{width:7em;height:7em;font-size:1.7em}
.tgp__list{flex:1;min-height:0;overflow:auto;background:#fff}
.tgp__chat{display:flex;align-items:center;width:100%;text-align:left;padding:.55em .75em;gap:.8em;border:0;background:#fff;color:#000}
.tgp__chat:hover,.tgp__plain:hover,.tgp__drow:hover{background:#f1f5f8}
.tgp__chat-main{display:flex;flex-direction:column;min-width:0;flex:1;gap:.15em;padding-bottom:.4em;border-bottom:1px solid #e9eef2}
.tgp__chat-top{display:flex;align-items:baseline;gap:.4em}
.tgp__chat-top strong{flex:1;min-width:0;font-size:1.18em;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:.2em}
.tgp__chat.is-secret .tgp__chat-top strong{color:#2f9e44}
.tgp__chat-top time{font-size:.88em;color:#8a96a0;white-space:nowrap;display:inline-flex;align-items:center;gap:.25em}
.tgp__chat-main small{font-size:1em;color:#7f8c96;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tgp__you{color:#527da3}
.tgp__ticks{display:inline-block;width:1.25em;height:.85em;color:#4fae4e}
.tgp__ticks svg{width:100%;height:100%;display:block}
.tgp__fab{position:absolute;right:.9em;bottom:.9em;width:3.7em;height:3.7em;border-radius:50%;border:0;background:#1977c9;color:#fff;display:grid;place-items:center;box-shadow:0 3px 8px #0004}
.tgp__fab .tgp__ic{width:1.7em;height:1.7em}
.tgp__scrim{position:absolute;inset:0;background:#0007;z-index:4;border:0}
.tgp__drawer{position:absolute;top:0;bottom:0;left:0;width:78%;z-index:5;background:#fff;display:flex;flex-direction:column;box-shadow:2px 0 10px #0005}
.tgp__drawer-head{display:flex;flex-direction:column;gap:.15em;padding:1.1em .9em .8em;background:#4f789c;color:#fff}
.tgp__drawer-head .tgp__avatar{margin-bottom:.5em}
.tgp__drawer-head small{color:#d3e4f2}
.tgp__drow{display:flex;align-items:center;gap:1em;padding:.8em 1em;border:0;background:#fff;text-align:left;font-size:1.05em;font-weight:500}
.tgp__drow .tgp__ic{color:#7f8c96}
.tgp__wall{min-height:0;flex:1;overflow:auto;display:flex;flex-direction:column-reverse;padding:.5em .55em;
  background:radial-gradient(circle at 20% 15%,#e6efdf 0,transparent 55%),radial-gradient(circle at 85% 80%,#b9d3d6 0,transparent 55%),#cfdcc7}
.tgp__msgs{display:flex;flex-direction:column;gap:.28em}
.tgp__date{align-self:center;padding:.2em .8em;background:#0000004d;color:#fff;border-radius:1em;font-size:.88em;font-weight:500;margin:.2em 0 .3em}
.tgp__notice{align-self:center;display:flex;gap:.4em;align-items:center;text-align:left;max-width:92%;padding:.45em .8em;background:#0000004d;color:#fff;border-radius:1em;font-size:.88em;margin-bottom:.3em}
.tgp__notice .tgp__ic{width:1.1em;height:1.1em;color:#7be08a}
.tgp__bubble{max-width:82%;min-width:0;padding:.38em .6em .3em;display:block;border-radius:.85em;overflow-wrap:anywhere;box-shadow:0 1px 1px #0002;position:relative;font-size:1.08em;line-height:1.3}
.tgp__bubble.is-out{align-self:flex-end;background:#effdde;border-bottom-right-radius:.25em}
.tgp__bubble.is-in{align-self:flex-start;background:#fff;border-bottom-left-radius:.25em}
.tgp__text{white-space:pre-wrap}
.tgp__bubble small{float:right;margin:.55em 0 -.1em .6em;font-size:.76em;color:#8a9a85;display:inline-flex;align-items:center;gap:.25em;line-height:1}
.tgp__bubble.is-in small{color:#a0a9b0}
.tgp__empty{align-self:center;font-size:.95em;color:#fff;background:#0000004d;padding:.3em .8em;border-radius:1em}
.tgp__form{display:flex;flex:0 0 auto;gap:.25em;align-items:center;padding:.3em .4em;background:#fff;border-top:1px solid #dfe5ea}
.tgp__attach{color:#8a96a0;width:2.1em;height:2.1em;padding:.1em}
.tgp__form input{flex:1;min-width:0;width:80px;padding:.6em .3em;border:0!important;background:transparent;font-size:1.08em;color:#000}
.tgp__form input::placeholder{color:#a0a9b0}
.tgp__app .tgp__form button{background:transparent;border:0;color:#3d9be0!important;width:2.5em;height:2.5em;border-radius:50%;display:grid;place-items:center;padding:.3em}
.tgp__form button svg{width:1.7em;height:1.7em}
.tgp__body{flex:1;min-height:0;overflow:auto;background:#f0f2f5}
.tgp__profile{display:flex;flex-direction:column;align-items:center;gap:.3em;padding:1.2em .8em 1em;background:#fff}
.tgp__profile strong{font-size:1.45em;font-weight:500;margin-top:.3em}
.tgp__profile small{font-size:1em;color:#7f8c96}
.tgp__group{margin-top:.6em;background:#fff;border-top:1px solid #e3e8ec;border-bottom:1px solid #e3e8ec}
.tgp__kv{display:flex;flex-direction:column;padding:.7em .9em;border-bottom:1px solid #eef1f4;gap:.1em}
.tgp__kv small{color:#527da3;font-size:.9em}
.tgp__kv span{font-size:1.1em}
.tgp__plain{display:flex;align-items:center;gap:.9em;width:100%;padding:.8em .9em;border:0;border-bottom:1px solid #eef1f4;background:#fff;text-align:left;font-size:1.08em;color:#2279bf}
.tgp__plain .tgp__ic{color:#2481cc}
.tgp__plain .tgp__green{color:#2f9e44}
.tgp__subtitle{padding:.5em .9em;font-weight:500;color:#497092;font-size:.95em;background:#f0f2f5}
.tgp__app.is-android .tgp__bar-t:empty{display:none}
/* iOS */
.is-ios .tgp__bar{background:#f7f7f7;color:#000;border-bottom:1px solid #d6d6d9;min-height:3em;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:.3em}
.is-ios .tgp__bar-l{justify-self:start;color:#007aff}
.is-ios .tgp__bar-r{justify-self:end;color:#007aff}
.is-ios .tgp__bar-t{font-size:1.2em;font-weight:600;color:#000;text-align:center;flex:none;max-width:12em}
.is-ios .tgp__bar .tgp__barbtn,.is-ios .tgp__bar .tgp__back{color:#007aff;width:auto;height:auto;padding:.15em .2em}
.is-ios .tgp__bar .tgp__back{display:inline-flex;align-items:center;font-size:1.1em;gap:.05em}
.is-ios .tgp__bar .tgp__back .tgp__ic{width:1.5em;height:1.5em}
.is-ios .tgp__edit{font-size:1.1em;padding:.2em .3em}
.is-ios .tgp__person{align-items:center}
.is-ios .tgp__person strong{color:#000;font-size:1em;font-weight:600;justify-content:center}
.is-ios .tgp__person small{color:#8a8a8e;font-size:.8em}
.is-ios .tgp__avatar.is-sm{width:2.5em;height:2.5em}
.is-ios .tgp__search{display:flex;align-items:center;gap:.4em;margin:.5em .7em;padding:.5em .7em;color:#68686d;background:#e9e9ec;border-radius:.65em;font-size:1.02em;flex:0 0 auto}
.is-ios .tgp__search .tgp__ic{width:1.15em;height:1.15em}
.is-ios .tgp__chat{padding:.5em 0 0 .75em}
.is-ios .tgp__chat-main{padding:0 .75em .5em 0}
.is-ios .tgp__chat-top time{color:#8e8e93}
.is-ios .tgp__ticks{color:#007aff}
.is-ios .tgp__you{color:#000}
.is-ios .tgp__tabs{display:flex;flex:0 0 auto;background:#f7f7f7;border-top:1px solid #d6d6d9;padding:.25em .2em .15em}
.is-ios .tgp__tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:.1em;background:transparent;border:0;color:#8e8e93;font-size:.82em;padding:.15em}
.is-ios .tgp__tab:disabled{opacity:.7;cursor:default}
.is-ios .tgp__tab.is-on{color:#007aff}
.is-ios .tgp__tab .tgp__ic{width:2em;height:2em}
.is-ios .tgp__wall{background:radial-gradient(circle at 15% 10%,#dfe8d0 0,transparent 55%),radial-gradient(circle at 90% 85%,#a3c3dd 0,transparent 60%),#b7c9d6}
.is-ios .tgp__bubble{border-radius:1em}
.is-ios .tgp__bubble.is-out{background:#e1ffc7}
.is-ios .tgp__ticks{color:#4fae4e}
.is-ios .tgp__form{background:#f7f7f7;border-top:1px solid #d6d6d9;padding:.4em .5em}
.is-ios .tgp__form input{background:#fff;border:1px solid #d6d6d9!important;border-radius:1.2em;padding:.55em .8em;flex:1}
.tgp__app.is-ios .tgp__form button{background:#0070eb;color:#fff!important;width:2.1em;height:2.1em}
.is-ios .tgp__form button svg{width:1.2em;height:1.2em}
.is-ios .tgp__attach{color:#007aff}
.is-ios .tgp__body,.is-ios .tgp__subtitle{background:#efeff4}
.is-ios .tgp__subtitle{color:#6d6d72;text-transform:uppercase;font-size:.8em;padding:.6em .9em .3em}
.is-ios .tgp__plain,.is-ios .tgp__plain .tgp__ic{color:#007aff}
.is-ios .tgp__plain .tgp__green{color:#34c759}
.is-ios .tgp__kv small{color:#6d6d72}
.is-ios .tgp__group{border-radius:.6em;margin:.7em .7em 0;overflow:hidden;border:0}
.is-ios .tgp__profile{background:#efeff4}
.tgp-pair{--ifd-ink:#16354a;max-width:1250px;margin:auto;font-family:Inter,Arial,sans-serif}
.tgp-pair header{padding:1rem 1.3rem;color:#eaf8fc;background:#0d2a41;border-radius:12px 12px 0 0}
.tgp-pair header strong{font-size:1.15rem;color:#fff}
.tgp-pair header p{font-size:.83rem;line-height:1.45;margin:.4rem 0 0}
.tgp-pair__devices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;padding:.8rem;background:#f1f6f9}
.tgp-pair__devices section{min-width:0;display:flex;flex-direction:column;align-items:stretch;background:#fff;border:1px solid #d8e4eb;border-radius:10px;padding:.55rem}
.tgp-pair__devices h2{font-size:1rem;text-align:center;margin:.2rem 0 .4rem;color:#153d56}
.tgp-pair__devices iframe{height:min(78dvh,760px);min-height:540px;border:0;width:100%;background:#e6eff4}
.tgp-pair__devices a{padding:.5rem;color:#11688a;text-align:center;font-size:.77rem;font-weight:750}
.tgp-pair__foot{font-size:.78rem;color:#35576c;padding:.6rem .8rem}
.ifd-phone-world-nav{padding:.5rem .75rem;font-size:.77rem}
body.ifd-phone-embedded{height:100dvh;overflow:hidden;background:#e6eff4}
body.ifd-phone-embedded .md-header,body.ifd-phone-embedded .md-tabs,
body.ifd-phone-embedded .md-sidebar,body.ifd-phone-embedded .md-footer,
body.ifd-phone-embedded .ifd-modebar,body.ifd-phone-embedded .ifd-phone-world-nav{display:none!important}
body.ifd-phone-embedded .md-main,body.ifd-phone-embedded .md-main__inner,
body.ifd-phone-embedded .md-content,body.ifd-phone-embedded .md-content__inner{width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden}
body.ifd-phone-embedded #ifd-phone-explorer{height:100%;max-height:100%;overflow:hidden}
body.ifd-phone-embedded .phone-explorer-shell{height:100%;min-height:0;display:block;overflow:hidden}
body.ifd-phone-embedded .phone-controls,body.ifd-phone-embedded .phone-network-observations{display:none!important}
body.ifd-phone-embedded .phone-stage{height:100%;padding:.25rem;min-height:0;overflow:hidden;display:grid;place-items:center}
body.ifd-phone-embedded .phone-device{height:100%;max-height:100%;min-height:0;margin:0 auto}
body.ifd-phone-embedded .phone-display{height:calc(100% - 1.1rem);min-height:0;max-height:none}
body.ifd-phone-embedded .phone-screen{min-height:0}
@media(max-width:770px){.tgp-pair__devices{grid-template-columns:1fr}.tgp-pair__devices iframe{height:72dvh}}

/* Side-by-side machine review: no site chrome across the actual handsets. */
body:has(.tgp-pair) .md-header,
body:has(.tgp-pair) .md-tabs,
body:has(.tgp-pair) .md-sidebar,
body:has(.tgp-pair) .ifd-modebar {display:none!important}
body:has(.tgp-pair) .md-main__inner,
body:has(.tgp-pair) .md-content,
body:has(.tgp-pair) .md-content__inner {max-width:none;width:100%}
body:has(.tgp-pair) .md-content__inner>h1{display:none!important}
body.ifd-phone-embedded .md-content__inner>h1,
body.ifd-phone-embedded h1 {display:none!important}
body.ifd-phone-embedded .md-content__inner:before,
body.ifd-phone-embedded .md-content__inner:after {display:none!important}

body:has(.tgp-pair) .md-main,
body:has(.tgp-pair) .md-main__inner,
body:has(.tgp-pair) .md-content,
body:has(.tgp-pair) .md-content__inner,
body:has(.tgp-pair) #ifd-main-content{
 width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
 box-sizing:border-box!important
}
body:has(.tgp-pair) h1{display:none!important}
body:has(.tgp-pair){overflow-x:clip}

/* Scoped iPhone polish and shorter standalone review entry, preserving old fixtures. */
body:has(#ifd-phone-explorer[data-manifest*="tg714"]) #ifd-main-content>h1,
body:has(#ifd-phone-explorer[data-manifest*="tg714"]) .md-content__inner>h1 {display:none!important}
body:has(#ifd-phone-explorer[data-manifest*="tg714-ravi"]) .phone-device.is-ios .phone-system-nav{
  height:2.5rem;min-height:2.5rem;padding:.15rem .7rem;background:#f8f8fb
}
body:has(#ifd-phone-explorer[data-manifest*="tg714-ravi"]) .phone-device.is-ios .phone-system-nav button{
  min-height:2rem;padding:.17rem .35rem;font-size:.74rem;color:#1672b2;background:transparent;border:0
}
body:has(#ifd-phone-explorer[data-manifest*="tg714-ravi"]) .phone-device.is-ios .phone-system-nav button[data-action="home"]{
  width:4.4rem;height:.24rem;min-height:.24rem;padding:0!important;
  font-size:0!important;border-radius:12px;background:#283e48!important
}

.tgp__unread{background:#187abf;color:white;border-radius:12px;min-width:20px;height:20px;line-height:20px;text-align:center;font-size:12px;margin-left:6px}
