/* Basiri v3: product-grade screens. Banners = real photo + scrim + Estedad headline (typeset in HTML, never baked into images). */
:root{--ink:#1C1C1E;--card:#fff;--gold:#FF9500;--green:#34C759;--purple:#AF52DE;--teal:#30B0C7}
.tabwrap{position:absolute;inset:0}
.av{display:inline-block;border-radius:50%;background:center/cover #E5E5EA;flex:none}
.avs{display:flex;flex:none}.avs .av+.av{margin-inline-start:-9px;box-shadow:0 0 0 2px #fff}
.page{background:#fff}
.hstrip{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;padding:0 16px 4px;scroll-snap-type:x mandatory}
.hstrip::-webkit-scrollbar{display:none}
.hstrip>*{scroll-snap-align:start;flex:none}
.shd{display:flex;align-items:baseline;justify-content:space-between;padding:26px 20px 10px}
.shd b{font:700 20px/1.4 var(--ui)}
.shd button{font:400 15px/1 var(--ui);color:var(--accent)}
.shd small{display:block;font:400 13px/1.5 var(--ui);color:var(--label-2)}

/* app header (Home) */
.ahd{position:sticky;top:0;z-index:20;height:106px;padding:58px 16px 0;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(20px) saturate(1.8);backdrop-filter:blur(20px) saturate(1.8)}
.ahd .tx{flex:1;display:flex;flex-direction:column;min-width:0}
.ahd .tx small{font:400 13px/1.3 var(--ui);color:var(--label-2)}
.ahd .tx b{font:700 17px/1.35 var(--ui)}
.icb{position:relative;width:40px;height:40px;border-radius:50%;background:var(--fill);display:flex;align-items:center;justify-content:center;color:var(--label);flex:none}
.icb:active{opacity:.6}
.icb .bd8{position:absolute;top:8px;left:9px;width:9px;height:9px;border-radius:50%;background:var(--red);box-shadow:0 0 0 2px #fff}

/* banner */
.bn{position:relative;display:block;width:100%;border-radius:28px;overflow:hidden;background:center/cover #2C2C2E;color:#fff;text-align:right;isolation:isolate;transition:transform .18s var(--ease)}
button.bn:active{transform:scale(.985)}
.bn::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(0,0,0,0) 20%,rgba(0,0,0,.62) 100%)}
.bn.bottom::before{background:linear-gradient(180deg,rgba(0,0,0,0) 30%,rgba(0,0,0,.7) 100%)}
.bn.light{color:var(--label)}.bn.light::before{background:linear-gradient(90deg,rgba(255,255,255,0) 25%,rgba(255,255,255,.92) 78%)}
.bn .in{position:relative;height:100%;display:flex;flex-direction:column;justify-content:flex-end;padding:20px 20px 18px;gap:6px}
.bn .in.top{justify-content:flex-start}
.bn .kick{font:600 12px/1.3 var(--ui);letter-spacing:.2px;opacity:.85;display:flex;align-items:center;gap:6px}
.bn h3{font:800 25px/1.38 var(--disp);letter-spacing:-.2px;text-wrap:balance;max-width:78%}
.bn h3.xl{font-size:30px}
.bn p{font:400 14px/1.6 var(--ui);opacity:.9;max-width:72%;text-wrap:pretty}
.bn .row2{display:flex;align-items:center;gap:10px;margin-top:8px}
.pill{height:38px;padding:0 18px;border-radius:19px;background:#fff;color:#000;display:inline-flex;align-items:center;gap:6px;font:600 15px/1 var(--ui);white-space:nowrap;flex:none}
.pill.blue{background:var(--accent);color:#fff}
.pill.glass{background:rgba(255,255,255,.22);color:#fff;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:inset 0 0 0 .5px rgba(255,255,255,.35)}
.bn .meter{flex:1;height:5px;border-radius:3px;background:rgba(255,255,255,.3);overflow:hidden;max-width:120px}
.bn .meter i{display:block;height:100%;background:#fff;border-radius:3px;transition:width .5s var(--ease)}
.bn .chip{position:absolute;top:14px;right:14px;height:26px;padding:0 10px;border-radius:13px;background:rgba(0,0,0,.35);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font:600 12px/26px var(--ui);color:#fff}
.bn .play{width:48px;height:48px;border-radius:50%;background:#fff;color:#000;display:flex;align-items:center;justify-content:center;flex:none}
.bn.ink{background:var(--ink)}
.bn.ink::before{display:none}
.bn.ink .ph{position:absolute;inset:0 auto 0 0;width:46%;background:center/cover;-webkit-mask:linear-gradient(270deg,transparent,#000 45%);mask:linear-gradient(270deg,transparent,#000 45%)}
.orn{display:flex;align-items:center;gap:8px;opacity:.75;margin:2px 0}
.orn i{height:1px;width:26px;background:currentColor}.orn b{width:5px;height:5px;transform:rotate(45deg);background:currentColor}

/* day unit steps */
.steps{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;padding:14px 16px 0}
.stp{display:flex;flex-direction:column;align-items:center;gap:6px}
.stp i{width:100%;height:5px;border-radius:3px;background:var(--fill)}
.stp.done i{background:var(--green)}.stp.cur i{background:var(--accent)}
.stp span{font:500 11px/1.2 var(--ui);color:var(--label-2);white-space:nowrap}
.stp.cur span{color:var(--accent);font-weight:600}

/* section rows */
.srow{display:flex;align-items:center;gap:12px;padding:12px 16px;width:100%;text-align:right;position:relative}
.srow+.srow::before{content:"";position:absolute;top:0;left:16px;right:76px;height:.5px;background:var(--sep)}
.srow:active{background:var(--fill-2)}
.sico{width:48px;height:48px;border-radius:15px;display:flex;align-items:center;justify-content:center;flex:none;color:#fff}
.srow .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.srow .tx b{font:600 16px/1.45 var(--ui)}
.srow .tx small{font:400 13px/1.45 var(--ui);color:var(--label-2)}
.srow .st{font:500 13px/1 var(--ui);color:var(--label-3);white-space:nowrap}
.srow.done .st{color:#248A3D}.srow.cur .st{color:var(--accent);font-weight:600}
.srow.done .sico{opacity:.45}
.ckr{width:26px;height:26px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;flex:none}

/* cards */
.card{background:#fff;border-radius:24px;box-shadow:0 0 0 .5px var(--sep),0 8px 24px -14px rgba(0,0,0,.22)}
.gcard{background:var(--grouped);border-radius:24px}
.ev{width:236px;text-align:right}
.ev .ph{height:132px;border-radius:22px;background:center/cover #E5E5EA;position:relative}
.ev .ph .tag{position:absolute;top:10px;right:10px;height:24px;padding:0 10px;border-radius:12px;background:rgba(255,255,255,.92);color:#000;font:600 12px/24px var(--ui)}
.ev .tx{padding:10px 4px 0;display:flex;flex-direction:column;gap:2px}
.ev .tx b{font:600 16px/1.45 var(--ui)}
.ev .tx small{font:400 13px/1.4 var(--ui);color:var(--label-2)}
.tip{margin:0 16px;padding:16px;display:flex;gap:12px;align-items:flex-start}
.tip .tile{width:40px;height:40px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.tip .tx{flex:1;display:flex;flex-direction:column;gap:4px}
.tip .tx b{font:600 16px/1.5 var(--ui)}
.tip .tx p{font:400 14px/1.7 var(--ui);color:var(--label-2)}
.lb{margin:0 16px;padding:4px 0}
.lbr{display:flex;align-items:center;gap:12px;padding:10px 16px}
.lbr+.lbr{box-shadow:inset 0 .5px 0 var(--sep)}
.lbr .n{width:22px;font:700 15px/1 var(--ui);color:var(--label-3);text-align:center}
.lbr .n.g{color:var(--gold)}
.lbr .tx{flex:1;display:flex;flex-direction:column}
.lbr .tx b{font:600 15px/1.4 var(--ui)}.lbr .tx small{font:400 12px/1.4 var(--ui);color:var(--label-2)}
.lbr .sc{font:600 15px/1 var(--ui);white-space:nowrap}
.lbr.me{background:var(--accent-bg)}

/* stats */
.stats{display:grid;grid-template-columns:repeat(3,1fr);margin:0 16px;padding:14px 0}
.stats div{display:flex;flex-direction:column;align-items:center;gap:2px}
.stats div+div{box-shadow:inset -.5px 0 0 var(--sep)}
.stats b{font:700 24px/1.2 var(--ui)}
.stats small{font:400 12px/1.4 var(--ui);color:var(--label-2)}

/* pillars */
.pgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 16px}
.pil{border-radius:24px;overflow:hidden;background:var(--grouped);text-align:right;display:flex;flex-direction:column}
.pil .ph{height:92px;background:center/cover #E5E5EA}
.pil .tx{padding:10px 12px 12px;display:flex;flex-direction:column;gap:6px}
.pil .tx b{font:600 15px/1.35 var(--ui)}
.pil .bar{height:4px;border-radius:2px;background:rgba(120,120,128,.18);overflow:hidden}
.pil .bar i{display:block;height:100%;border-radius:2px}
.pil .tx small{font:400 12px/1 var(--ui);color:var(--label-2)}

/* circuit map */
.circ-map{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 16px;gap:4px}
.cn{display:flex;flex-direction:column;align-items:center;gap:6px;flex:none}
.cn i{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--fill);color:var(--label-3);font:700 14px/1 var(--ui);font-style:normal}
.cn.done i{background:var(--green);color:#fff}.cn.cur i{background:var(--accent);color:#fff;box-shadow:0 0 0 5px var(--accent-bg)}
.cn span{font:500 11px/1.2 var(--ui);color:var(--label-2);white-space:nowrap}
.cl{flex:1;height:2px;background:var(--fill);border-radius:1px;margin-bottom:20px}.cl.done{background:var(--green)}

/* chat */
.chips{display:flex;gap:8px;flex-wrap:wrap;padding:0 16px}
.chp{height:36px;padding:0 14px;border-radius:18px;background:var(--grouped);font:500 14px/36px var(--ui);white-space:nowrap}
.chp:active{background:var(--fill)}
.msgs{padding:12px 14px 0;display:flex;flex-direction:column;gap:8px}
.msg{max-width:80%;padding:10px 14px;border-radius:20px;font:400 16px/1.65 var(--ui)}
.msg.me{align-self:flex-start;background:var(--accent);color:#fff;border-bottom-left-radius:6px}
.msg.ai{align-self:flex-end;background:var(--grouped);border-bottom-right-radius:6px}
.composer{position:sticky;bottom:98px;margin:16px 12px 0;height:50px;border-radius:25px;background:#fff;box-shadow:0 0 0 .5px var(--sep),0 8px 24px -10px rgba(0,0,0,.2);display:flex;align-items:center;padding:0 14px 0 7px;gap:8px;z-index:5}
.composer input{flex:1;font:400 16px/1 var(--ui)}
.snd{width:36px;height:36px;border-radius:50%;background:var(--fill);color:var(--label-3);display:flex;align-items:center;justify-content:center}
.snd.on{background:var(--accent);color:#fff}
.typing{display:flex;gap:4px;padding:4px 0}.typing i{width:7px;height:7px;border-radius:50%;background:var(--label-3);animation:tp 1s infinite}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes tp{50%{opacity:.3;transform:translateY(-2px)}}

/* tribe */
.post{margin:0 16px;padding:14px 16px}
.post+.post{margin-top:12px}
.post .hd{display:flex;align-items:center;gap:10px}
.post .hd .tx{flex:1;display:flex;flex-direction:column}
.post .hd b{font:600 15px/1.35 var(--ui)}.post .hd small{font:400 12px/1.35 var(--ui);color:var(--label-2)}
.post .badge{height:22px;padding:0 9px;border-radius:11px;background:var(--accent-bg);color:var(--accent);font:600 11px/22px var(--ui)}
.post h4{font:700 16px/1.5 var(--ui);margin-top:12px}
.post p{font:400 15px/1.75 var(--ui);color:rgba(0,0,0,.82);margin-top:4px}
.post .img{height:160px;border-radius:18px;margin-top:10px;background:center/cover #E5E5EA}
.post .ac{display:flex;gap:4px;margin-top:10px;margin-inline-start:-8px}
.post .ac button{height:36px;padding:0 10px;border-radius:18px;display:flex;align-items:center;gap:6px;font:500 14px/1 var(--ui);color:var(--label-2)}
.post .ac button.on{color:var(--red)}
.post .ac button.on svg path{fill:currentColor}
.chl{width:250px;padding:14px;display:flex;flex-direction:column;gap:8px;text-align:right}
.chl .top{display:flex;align-items:center;justify-content:space-between}
.chl .md{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff}
.chl b{font:600 16px/1.45 var(--ui)}
.chl small{font:400 13px/1.5 var(--ui);color:var(--label-2)}
.chl .ft{display:flex;align-items:center;justify-content:space-between;margin-top:4px}

/* me */
.prof{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 16px 6px;text-align:center}
.prof b{font:700 22px/1.4 var(--ui)}
.prof small{font:400 14px/1.4 var(--ui);color:var(--label-2)}
.heat{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;padding:4px 16px 16px}
.heat i{aspect-ratio:1;border-radius:9px;background:var(--fill-2)}
.heat i.a{background:var(--green)}.heat i.b{background:var(--gold)}.heat i.h{background:rgba(52,199,89,.45)}
.heat i.t{box-shadow:inset 0 0 0 2px var(--accent)}
.heat-h{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;padding:14px 16px 6px}
.heat-h span{font:500 11px/1 var(--ui);color:var(--label-3);text-align:center}
.bdg{display:flex;flex-direction:column;align-items:center;gap:6px;width:76px}
.bdg i{width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff}
.bdg.off i{background:var(--fill)!important;color:var(--label-3)}
.bdg span{font:500 12px/1.3 var(--ui);text-align:center}

/* section sheet content */
.sx{padding:4px 20px 24px;display:flex;flex-direction:column;gap:14px}
.sx .ph{height:180px;border-radius:26px;background:center/cover #E5E5EA}
.sx h2{font:800 24px/1.45 var(--disp)}
.sx p{font:400 16px/1.8 var(--ui);color:rgba(0,0,0,.84)}
.breath{align-self:center;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,rgba(0,122,255,.18),rgba(0,122,255,.06) 70%);display:flex;align-items:center;justify-content:center;font:600 17px/1 var(--ui);color:var(--accent);animation:br 8s var(--ease) infinite}
@keyframes br{0%,100%{transform:scale(.78)}45%,55%{transform:scale(1)}}
.rm .breath{animation:none}
.qz{display:flex;flex-direction:column;gap:8px}
.qo{min-height:50px;padding:12px 16px;border-radius:18px;background:var(--grouped);font:500 16px/1.5 var(--ui);text-align:right;display:flex;align-items:center;justify-content:space-between;gap:8px;transition:background .15s}
.qo.ok{background:rgba(52,199,89,.16);color:#1D7A34}.qo.no{background:rgba(255,59,48,.12);color:#C4291F}
