/* NISBAT CONNECT v11 — navigation, readability, broadcast attachments */

/* Large, clearly visible Back button (login, request access, reset password, profile) */
.back-btn.back-lg,.app-top .back-btn.back-lg{width:auto;height:46px;min-width:46px;padding:0 18px 0 14px;border-radius:23px;gap:8px;
  display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;letter-spacing:.2px;
  background:var(--emerald,#0d5c3f);color:#fff;border:2px solid var(--gold,#c9a24b);box-shadow:0 3px 10px rgba(0,0,0,.22);cursor:pointer;}
.back-btn.back-lg .bk-ar{font-size:24px;line-height:1;margin-top:-2px;}
.back-btn.back-lg .bk-tx{font-size:15px;}
.back-btn.back-lg:active{transform:scale(.96);filter:brightness(1.1);}
html[lang="ur"] .back-btn.back-lg{transform:none;}
html[lang="ur"] .back-btn.back-lg .bk-ar{transform:scaleX(-1);display:inline-block;}
.auth-head{padding-top:max(14px,env(safe-area-inset-top));min-height:64px;}
.profile-hero{position:relative;}
.profile-hero .profile-back{position:absolute;top:max(12px,env(safe-area-inset-top));left:14px;z-index:5;}
html[lang="ur"] .profile-hero .profile-back{left:auto;right:14px;}

/* Dua & Zikr card at the top of Library */
.lib-zikr-card{margin-bottom:14px;}
.lib-zikr-card:active{transform:scale(.99);}

/* Zikr & Amal: long text never stretches the layout */
.hb-l span{min-width:0;flex:1 1 auto;}
.hb-l b{flex:0 0 auto;}
.zikr-preview-card .t{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.zikr-preview-card .cond{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.zd-title{overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.zd-hero-txt h3{overflow-wrap:anywhere;}

/* Arzi: roomier message box */
.chat-bar textarea{min-height:76px;max-height:220px;font-size:15px;line-height:1.45;padding:12px 15px;border-radius:18px;}
.chat-bar{align-items:flex-end;}

/* Font size (Settings) — scales content areas; navigation and headers keep their size */
html[data-fs="sm"] .app-content,html[data-fs="sm"] .profile-body,html[data-fs="sm"] .chat-msgs,html[data-fs="sm"] .auth-body{zoom:.9;}
html[data-fs="lg"] .app-content,html[data-fs="lg"] .profile-body,html[data-fs="lg"] .chat-msgs,html[data-fs="lg"] .auth-body{zoom:1.15;}
html[data-fs="xl"] .app-content,html[data-fs="xl"] .profile-body,html[data-fs="xl"] .chat-msgs,html[data-fs="xl"] .auth-body{zoom:1.3;}
html[data-fs="lg"] .chat-bar textarea{font-size:17px;} html[data-fs="xl"] .chat-bar textarea{font-size:19px;}
.fs-pick{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;}
.fs-pick button{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;padding:10px 4px;border-radius:14px;border:2px solid var(--line);
  background:transparent;color:var(--ink);font-weight:700;min-height:64px;cursor:pointer;}
.fs-pick button small{font-size:10.5px;font-weight:600;opacity:.8;}
.fs-pick button.on{border-color:var(--gold,#c9a24b);background:rgba(201,162,75,.16);}
.fs-sample{margin-top:12px;padding:12px;border-radius:12px;background:rgba(127,127,127,.1);line-height:1.5;}
html[data-fs="sm"] .fs-sample{font-size:12.5px;} html[data-fs="md"] .fs-sample,html:not([data-fs]) .fs-sample{font-size:14px;}
html[data-fs="lg"] .fs-sample{font-size:16.5px;} html[data-fs="xl"] .fs-sample{font-size:19px;}

/* Broadcast attachment */
.bc-attach{display:flex;gap:8px;align-items:center;margin-bottom:6px;}
.bc-attach .btn{width:auto;padding:10px 16px;}
.bc-fileinfo{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:12px;border:1px solid var(--line);margin-bottom:6px;min-width:0;}
.bc-fileinfo .n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;}
.bc-fileinfo button{width:30px;height:30px;border-radius:50%;flex:0 0 30px;}

/* long routine names inside charts: grid items may shrink, so the label can be cut with an ellipsis */
.hbars{grid-template-columns:minmax(0,1fr);}
.chart-card,.chart-two>*,.hb,.hb-l{min-width:0;max-width:100%;}
.zd-hero{flex-wrap:wrap;} .zd-hero-txt{flex:1 1 150px;} .zd-hero-txt .kicker{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;letter-spacing:.08em;}
