/* Talimla app layer: loaded last. Keeps the interface identical on every phone
   and gives tab changes native-feeling motion. */

/* ---------- bundled font: same typeface on every device, no network needed ---------- */
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;
  src:url(/mini/fonts/inter-latin-wght-normal.woff2) format('woff2-variations'),url(/mini/fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;
  src:url(/mini/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'),url(/mini/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---------- identical sizing everywhere ---------- */
/* Phones with an enlarged system font must not blow up the layout. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Nothing may ever push the page sideways. */
html,body{max-width:100%;overflow-x:hidden}
@supports(overflow:clip){html,body{overflow-x:clip}}
img,svg,video,canvas{max-width:100%}
input,select,textarea{min-width:0;max-width:100%}
/* Grid and flex children shrink instead of stretching their track past the screen. */
.home-dashboard{grid-template-columns:minmax(0,1fr)}
.home-dashboard>*,main>*,.app-shell>*{min-width:0;max-width:100%}
.catalog-search input{width:100%}
.catalog-intro .home-tag{white-space:normal}

/* ---------- bottom navigation: always visible, labels never overflow ---------- */
body:not(.auth-mode) .bottom-nav{z-index:60;max-width:min(644px,calc(100vw - 16px))}
.bottom-nav a{min-width:0;overflow:hidden}
.bottom-nav a>span:last-child{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}
.bottom-nav a{-webkit-tap-highlight-color:transparent;transition:color .25s,background-color .25s}
.bottom-nav a:active{transform:scale(.94)}

/* ---------- app feel ---------- */
html[data-client="android"],html[data-client="android"] body{overscroll-behavior-y:none}
html[data-client="android"] *{-webkit-tap-highlight-color:transparent}
main{touch-action:pan-y pinch-zoom}
button,a,[role="button"]{touch-action:manipulation}

/* ---------- iOS-like tab transitions (View Transitions API) ---------- */
.bottom-nav{view-transition-name:tabbar}
.bottom-nav a.active{view-transition-name:tabpill}
::view-transition-group(root){animation-duration:.46s;animation-timing-function:cubic-bezier(.32,.72,0,1)}
::view-transition-group(tabbar){animation:none}
::view-transition-old(tabbar){display:none}
::view-transition-new(tabbar){animation:none}
::view-transition-group(tabpill){animation-duration:.46s;animation-timing-function:cubic-bezier(.32,.72,0,1);z-index:2}
html[data-vt]::view-transition-old(root),html[data-vt]::view-transition-new(root){mix-blend-mode:normal;animation-duration:.46s;animation-timing-function:cubic-bezier(.32,.72,0,1);animation-fill-mode:both}
html[data-vt="fwd"]::view-transition-old(root){animation-name:vt-out-left}
html[data-vt="fwd"]::view-transition-new(root){animation-name:vt-in-right}
html[data-vt="back"]::view-transition-old(root){animation-name:vt-out-right}
html[data-vt="back"]::view-transition-new(root){animation-name:vt-in-left}
@keyframes vt-out-left{to{transform:translateX(-26%);opacity:.55}}
@keyframes vt-in-right{from{transform:translateX(100%)}}
@keyframes vt-out-right{to{transform:translateX(26%);opacity:.55}}
@keyframes vt-in-left{from{transform:translateX(-100%)}}
/* finger-follow while swiping between tabs */
main.is-dragging{transition:none!important;will-change:transform}
main.is-settling{transition:transform .32s cubic-bezier(.32,.72,0,1)}

@media(prefers-reduced-motion:reduce){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
}

/* SMS code step */
.entry-code{display:grid;gap:8px;animation:entry-code-in .32s cubic-bezier(.32,.72,0,1)}
.entry-code-hint{margin:2px 4px 0;color:#425a90;font-size:clamp(11px,2.7vw,13px);line-height:1.4;text-align:left}
.entry-code input{letter-spacing:.3em;font-variant-numeric:tabular-nums}
.entry-code input:placeholder-shown{letter-spacing:normal}
.entry-resend{justify-self:end;border:0;background:none;color:#2f61c4;font:inherit;font-size:clamp(11px,2.7vw,13px);font-weight:600;padding:4px 6px;cursor:pointer}
.entry-resend:disabled{color:#8a9bc4;cursor:default}
@keyframes entry-code-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.entry-code{animation:none}}
