/* Cross-page corrections that preserve the approved prototype language. */
@font-face{
    font-family:"Vazirmatn Persian Digits";
    font-style:normal;
    font-weight:100 900;
    font-display:swap;
    src:url("fonts/vazirmatn-full-wght-normal.woff2") format("woff2");
    unicode-range:U+0030-0039;
}

:where(bdi,time,code,output,[data-numeric],.numeric-value,.ascii-money){
    font-family:var(--font-numeric);
    font-variant-numeric:tabular-nums;
    font-feature-settings:"tnum" 1;
}

/* Keep ASCII digits in the DOM/API while Vazirmatn draws Persian glyphs in FA. */
body[data-locale="fa"]{
    font-family:"Vazirmatn Persian Digits",var(--font-numeric);
    font-feature-settings:"ss01" 1,"tnum" 1;
}

body[data-locale="fa"] :where(bdi,time,code,output,[data-numeric],.numeric-value,.ascii-money){
    font-family:"Vazirmatn Persian Digits",var(--font-numeric);
    font-feature-settings:"ss01" 1,"tnum" 1;
}

.auth-password input{
    padding-inline-start:13px;
    padding-inline-end:92px;
}

.auth-password button{
    max-inline-size:82px;
    white-space:nowrap;
}

.message-workspace{
    height:min(720px,calc(100vh - 190px));
    height:min(720px,calc(100dvh - 190px));
}

.conversation-panel,
.conversation-list,
.thread-panel,
.thread-messages{
    min-height:0;
}

.conversation-panel,
.thread-panel{
    overflow:hidden;
}

.message-composer{
    position:sticky;
    inset-block-end:0;
    z-index:2;
    flex:0 0 auto;
    background:#fff;
}

@media(max-width:800px){
    .message-workspace{
        height:calc(100vh - 230px);
        height:calc(100dvh - 230px);
    }
}
