/* Zummar — additions on top of the shared Apple-style system (app.css) */
.brand-t{font-weight:700}
.eyebrow{margin:0 0 6px!important;font-size:13px!important;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--pri)!important}
.hello h1{font-size:32px}
@media (min-width:900px){.hello h1{font-size:40px}}
.kpi b small{font-size:.55em;color:var(--tx3);font-weight:600;margin-left:2px}
.btn.sm{min-height:36px;padding:0 14px;font-size:14px}
.btn.danger{color:var(--dn)}
.ib.sm{min-width:32px;height:32px;padding:0}
.ib.sm svg{width:17px;height:17px}
.link{cursor:pointer}

/* market sub-navigation */
.subnav{position:sticky;top:calc(56px + var(--sat));z-index:25;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:6px calc(16px + var(--sar)) 10px calc(16px + var(--sal));max-width:1280px;margin:0 auto}
.subnav::-webkit-scrollbar{display:none}
.subnav[hidden]{display:none}
.subnav a{flex:none;min-height:34px;padding:0 14px;border-radius:999px;display:inline-flex;align-items:center;font-size:14px;font-weight:500;background:var(--glass);
  backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);box-shadow:0 0 0 .5px var(--line2);transition:background-color .25s,color .25s,transform .3s var(--spring)}
.subnav a:active{transform:scale(.94)}
.subnav a.on{background:var(--tx);color:var(--bg);box-shadow:none}
@media (min-width:900px){.subnav{margin-left:100px;padding-left:16px}}
@media (min-width:1480px){.subnav{margin-left:auto}}

/* ask box on Bosh */
.ask{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 10px;border-radius:20px}
.ask .logo{width:34px;height:34px;font-size:16px;border-radius:11px}
.ask input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:16px;min-height:42px}
.ask .ib{background:var(--pri);color:#fff}
.sugg{margin-top:10px}
.sugg .chip{font-size:13.5px}

/* task summary */
.tc-sum{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.tc-sum div{background:var(--card2);border-radius:14px;padding:10px 12px}
.tc-sum b{display:block;font-size:22px;font-weight:700;letter-spacing:-.02em}
.tc-sum span{font-size:12.5px;color:var(--tx2)}
.rep-prev .clamp{max-height:210px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 60%,transparent);mask-image:linear-gradient(#000 60%,transparent);margin:6px 0 8px}

/* tasks */
.trow{min-height:56px}
.chk{width:26px;height:26px;flex:none;border-radius:50%;border:2px solid var(--tx3);background:none;display:grid;place-items:center;cursor:pointer;padding:0;transition:background-color .25s,border-color .25s,transform .35s var(--spring)}
.chk svg{width:16px;height:16px;stroke:#fff;stroke-width:3;opacity:0;transform:scale(.5);transition:opacity .2s,transform .35s var(--spring)}
.chk:active{transform:scale(.85)}
.trow.done .chk{background:var(--up);border-color:var(--up)}
.trow.done .chk svg{opacity:1;transform:none}
.trow.done .t{color:var(--tx3);text-decoration:line-through}
.trow.doing .chk{border-color:var(--pri)}
.st-doing{color:var(--pri);font-weight:600}
.pr{color:var(--dn);font-weight:800}
.due{flex:none;font-size:12px;font-weight:600;border-radius:8px;padding:3px 8px;background:var(--card2);color:var(--tx2);font-variant-numeric:tabular-nums}
.due.td{background:var(--pri-bg);color:var(--pri)}
.due.od{background:color-mix(in srgb,var(--dn) 14%,transparent);color:var(--dn)}
.sec h2 small{font-size:15px;color:var(--tx3);font-weight:600;margin-left:4px}
.qadd{display:flex;align-items:center;gap:8px;padding:6px 6px 6px 16px;margin-bottom:6px;border-radius:18px}
.qadd>svg{color:var(--pri);width:20px;height:20px;stroke-width:2.4}
.qadd input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:16px;min-height:44px}

/* bottom sheet */
.sheet{position:fixed;inset:0;z-index:95}
.sheet[hidden]{display:none}
.sheet-bg{position:absolute;inset:0;background:rgba(0,0,0,.4);animation:fade .25s ease}
.sheet-box{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(560px,100%);max-height:92dvh;overflow-y:auto;background:var(--bg2);border-radius:26px 26px 0 0;
  padding:10px 18px calc(20px + var(--sab));display:flex;flex-direction:column;gap:12px;animation:sup .45s var(--spring);box-shadow:0 -10px 40px rgba(0,0,0,.3)}
[data-theme=light] .sheet-box{background:var(--bg)}
.sheet.out .sheet-box{animation:sdown .26s ease forwards}.sheet.out .sheet-bg{animation:fade .26s ease reverse forwards}
@keyframes sup{from{transform:translate(-50%,100%)}}
@keyframes sdown{to{transform:translate(-50%,100%)}}
@media (min-width:700px){.sheet-box{bottom:50%;border-radius:26px;transform:translate(-50%,50%);animation:sheet .45s var(--spring)}.sheet.out .sheet-box{animation:tout .2s ease forwards}}
.grab{display:block;width:38px;height:5px;border-radius:3px;background:var(--card3);margin:0 auto 4px}
.sheet h2{font-size:22px;letter-spacing:-.02em}
.sheet .inp{flex:none;width:100%}
.ta{padding:12px 14px!important;min-height:84px;resize:vertical;line-height:1.4}
.seg.full{display:flex;width:100%}.seg.full button{flex:1}
.frow{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.frow label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--tx2);font-weight:500}
.frow.end{justify-content:flex-end}
.frow .inp{min-width:160px}
.tgl{flex-direction:row!important;align-items:center;gap:10px!important;cursor:pointer;font-size:15px!important;color:var(--tx)!important}
.tgl input{display:none}
.tgl i{width:50px;height:30px;border-radius:999px;background:var(--card3);position:relative;transition:background-color .25s}
.tgl i::after{content:"";position:absolute;top:2px;left:2px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.25);transition:transform .35s var(--spring)}
.tgl input:checked+i{background:var(--up)}
.tgl input:checked+i::after{transform:translateX(20px)}
.form{display:flex;flex-direction:column;gap:14px}
.form .frow>span{font-weight:500}
.inp.sm{flex:0 0 110px;min-width:0!important}
b.ok{color:var(--up)}

/* Ko'proq */
.prof{display:flex;align-items:center;gap:14px}
.prof .logo.big{width:58px;height:58px;font-size:26px;border-radius:18px}
.prof .mid{flex:1;min-width:0}
.prof h2{font-size:20px;letter-spacing:-.02em}
.prof p{margin:2px 0 0}
.ring{--p:0;width:64px;height:64px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums;
  background:radial-gradient(closest-side,var(--card) 79%,transparent 80% 100%),conic-gradient(var(--pri) calc(var(--p)*1%),var(--card2) 0)}
.ring b{font-size:17px;font-weight:700}.ring span{font-size:11px;color:var(--tx3);font-weight:600}
.mi{width:100%;border:0;background:none;text-align:left;color:inherit;font:inherit}
.mic{width:34px;height:34px;flex:none;border-radius:10px;background:var(--card2);display:grid;place-items:center;font-size:17px}
.chev{color:var(--tx3);width:18px;height:18px}
.rep summary{list-style:none;display:flex;justify-content:space-between;align-items:center;cursor:pointer;min-height:28px}
.rep summary::-webkit-details-marker{display:none}
.rep{margin-bottom:12px}
.rep .md{margin-top:10px}

/* ---------- markdown ---------- */
.md{font-size:15.5px;line-height:1.55;overflow-wrap:anywhere}
.md>*:first-child{margin-top:0}.md>*:last-child{margin-bottom:0}
.md p{margin:0 0 10px}
.md h1,.md h2,.md h3,.md h4{font-size:17px;font-weight:700;letter-spacing:-.02em;margin:16px 0 8px}
.md h1{font-size:20px}
.md ul,.md ol{margin:0 0 10px;padding-left:22px}
.md li{margin:3px 0}
.md li::marker{color:var(--tx3)}
.md a{color:var(--pri);font-weight:500}
.md a.in-a{text-decoration:none;font-size:13px}
.md code{font:13px ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--card2);border-radius:6px;padding:1px 5px}
.md pre{background:var(--card2);border-radius:14px;padding:12px 14px;overflow-x:auto}
.md pre code{background:none;padding:0}
.md blockquote{margin:0 0 10px;padding:6px 14px;border-left:3px solid var(--pri);color:var(--tx2);background:var(--pri-bg);border-radius:0 12px 12px 0}
.md hr{border:0;height:.5px;background:var(--line2);margin:14px 0}
.md img{max-width:120px;max-height:150px;border-radius:12px;object-fit:cover;vertical-align:middle;margin:4px 6px 4px 0;background:var(--card2)}
.md-t{margin:4px 0 12px!important;padding:0!important;border-radius:14px;box-shadow:0 0 0 .5px var(--line2)}
.md table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.md th{text-align:left;font-size:12px;color:var(--tx2);font-weight:600;padding:9px 10px;background:var(--card2);white-space:nowrap}
.md td{padding:9px 10px;border-top:.5px solid var(--line)}
.md td:not(:first-child),.md th:not(:first-child){white-space:nowrap}
.md-chart{margin:4px 0 12px;padding:14px}

/* ---------- chat ---------- */
body.chat-on main{padding-bottom:calc(var(--tabh) + 120px + var(--sab));max-width:860px}
body.chat-on #ptr{display:none}
.chat-h{position:sticky;top:calc(56px + var(--sat));z-index:20;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 2px 12px;margin:0 -2px;
  background:linear-gradient(var(--bg) 70%,transparent)}
.chat-h h1{font-size:28px;letter-spacing:-.03em}
.chat-h .tiny{display:flex;align-items:center;gap:6px;margin-top:2px}
.dot{width:7px;height:7px;border-radius:50%;background:var(--up);box-shadow:0 0 0 3px color-mix(in srgb,var(--up) 25%,transparent)}
.msgs{display:flex;flex-direction:column;gap:14px;min-height:40vh}
.msgs.ro{max-height:70vh;overflow-y:auto;padding:16px}
.msg{display:flex;gap:10px;max-width:100%}
.msg.pop{animation:mpop .45s var(--spring)}
@keyframes mpop{from{opacity:0;transform:translateY(10px) scale(.98)}}
.msg.u{justify-content:flex-end}
.msg.u .bd{max-width:min(82%,560px);background:var(--pri);color:#fff;border-radius:22px 22px 6px 22px;padding:10px 14px 7px;box-shadow:0 6px 20px -8px rgba(112,0,255,.5)}
.msg.u .tx{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15.5px;line-height:1.45}
.msg.u time{display:block;text-align:right;font-size:11px;opacity:.7;margin-top:2px;font-variant-numeric:tabular-nums}
.msg.u .fls{display:flex;gap:6px;flex-wrap:wrap;margin:0 -6px 6px}
.msg.u .fls img{max-width:200px;max-height:220px;border-radius:16px;object-fit:cover}
.fchip{font-size:13px;background:rgba(255,255,255,.2);border-radius:10px;padding:4px 8px}
.msg.a .av{width:30px;height:30px;flex:none;border-radius:10px;display:grid;place-items:center;font-weight:700;font-size:14px;color:#fff;margin-top:2px;
  background:linear-gradient(145deg,#8c3bff,#6a00f0 55%,#4b00b0);box-shadow:0 4px 12px rgba(112,0,255,.3)}
.msg.a .bd{flex:1;min-width:0;padding-top:4px}
.msg.a .ma{display:flex;align-items:center;gap:4px;margin-top:4px;color:var(--tx3);font-size:11.5px;font-variant-numeric:tabular-nums;opacity:0;transition:opacity .2s}
.msg.a:hover .ma,.msg.a:last-child .ma{opacity:1}
@media (hover:none){.msg.a .ma{opacity:1}}
.msg.a .ma .ib{color:var(--tx3)}
.msg.sys{justify-content:center}
.msg.sys span{font-size:12px;color:var(--tx3);background:var(--card);border-radius:999px;padding:4px 12px}
.dsep{text-align:center;margin:6px 0 -2px}
.dsep span{font-size:12px;font-weight:600;color:var(--tx3)}
.stp{margin-bottom:6px;font-size:12.5px;color:var(--tx3)}
.stp summary{cursor:pointer;display:inline-flex;gap:4px;align-items:center;list-style:none;border-radius:8px;padding:2px 8px;background:var(--card)}
.stp summary::-webkit-details-marker{display:none}
.stp div{padding:3px 8px}
.steps{display:flex;flex-direction:column;gap:3px;margin-bottom:8px}
.steps span{font-size:13px;color:var(--tx3);animation:fin .35s var(--out) both}
.steps span.cur{color:var(--tx2);background:linear-gradient(90deg,var(--tx3) 0%,var(--tx) 50%,var(--tx3) 100%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shim 1.6s linear infinite}
@keyframes shim{from{background-position:200% 0}to{background-position:-200% 0}}
.typing{display:flex;gap:4px;padding:8px 0}
.typing i{width:7px;height:7px;border-radius:50%;background:var(--tx3);animation:bob 1.2s infinite ease-in-out}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes bob{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-5px);opacity:1}}
.live .md::after{content:"";display:inline-block;width:8px;height:15px;margin-left:2px;border-radius:2px;background:var(--pri);vertical-align:-2px;animation:blink 1s steps(2) infinite}
@keyframes blink{50%{opacity:0}}
.chat-empty{text-align:center;padding:5vh 8px 0;display:flex;flex-direction:column;align-items:center;gap:10px}
.chat-empty h2{font-size:26px;letter-spacing:-.03em;margin-top:6px}
.chat-empty p{color:var(--tx2);max-width:440px;margin:0 0 8px;text-wrap:balance}
.sugg-g{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:560px}
.sugg-g .chip{white-space:normal;text-align:left;min-height:40px;line-height:1.3;padding:8px 14px}

/* composer */
.composer{display:none}
body.chat-on .composer{display:block;position:fixed;z-index:41;left:50%;transform:translateX(-50%);bottom:calc(var(--tabh) + 16px + var(--sab));width:min(calc(100% - 24px - var(--sal) - var(--sar)),820px)}
.cbox{display:flex;align-items:flex-end;gap:4px;padding:6px;border-radius:26px;background:var(--glass);backdrop-filter:blur(30px) saturate(190%);-webkit-backdrop-filter:blur(30px) saturate(190%);
  box-shadow:0 0 0 .5px var(--line2),0 14px 40px rgba(0,0,0,.28)}
.cbox textarea{flex:1;min-width:0;border:0;outline:0;background:none;resize:none;font-size:16px;line-height:1.4;padding:9px 4px;max-height:160px;color:var(--tx)}
.cbox .ib{flex:none;color:var(--tx2)}
.cbox label.ib{cursor:pointer}
#micBtn.rec{color:#fff;background:var(--dn);animation:pulse 1.2s infinite}
#micBtn.spin svg{animation:rot .9s linear infinite}
@keyframes pulse{50%{box-shadow:0 0 0 8px color-mix(in srgb,var(--dn) 25%,transparent)}}
.send{flex:none;width:40px;height:40px;border-radius:50%;border:0;background:var(--pri);color:#fff;display:grid;place-items:center;cursor:pointer;transition:transform .3s var(--spring),background-color .2s}
.send:active{transform:scale(.88)}
.send svg{width:20px;height:20px;stroke-width:2.6}
.send .i-stop{display:none;fill:#fff;stroke:none}
.send.stop{background:var(--tx)}
.send.stop .i-send{display:none}.send.stop .i-stop{display:block;fill:var(--bg)}
.att{display:flex;gap:8px;margin:0 6px 8px;overflow-x:auto}
.att[hidden]{display:none}
.af{position:relative;flex:none;height:64px;min-width:64px;border-radius:14px;overflow:hidden;background:var(--card2);display:grid;place-items:center;box-shadow:var(--sh2)}
.af img{height:64px;width:64px;object-fit:cover}
.af span{font-size:12px;padding:0 10px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.af.up{opacity:.5}
.af button{position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;font-size:15px;line-height:1;cursor:pointer;padding:0}
@media (min-width:900px){body.chat-on .composer{left:calc(50% + 50px)}}
/* on chat, keyboard open on mobile: tab bar hides so composer sits low */
@media (max-width:899px){body.chat-on.kb .tabs{display:none}body.chat-on.kb .composer{bottom:calc(10px + var(--sab))}}
textarea{font:inherit;color:inherit;letter-spacing:inherit}
.btn{white-space:nowrap}
.chat-h .tiny{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-h>div{min-width:0}
@media (min-width:1100px){body.chat-on main{margin-left:auto;margin-right:auto}body.chat-on .composer{left:50%}}

.acts{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.act{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px 8px;padding:12px;border-radius:16px;background:var(--card);box-shadow:0 0 0 .5px var(--line2),var(--sh);animation:fade .3s ease}
.act .mid{flex:1 1 100%;min-width:0}.act .t{font-size:13px;font-weight:600;color:var(--warn)}.act .s{font-size:14px;color:var(--tx);overflow-wrap:anywhere;margin-top:2px}
.jr .s{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ringw{display:flex;flex-direction:column;align-items:center;gap:4px;flex:none}.ringw small{font-size:11px;color:var(--tx3);font-weight:500;white-space:nowrap}
