/* Hero chat mockup v4: realistic Slack / Teams app frame */
.r3-hero .hero-grid{grid-template-columns:1fr 1.04fr;gap:48px}
.cw-stage{position:relative;padding:22px 22px 14px;border-radius:30px;background:radial-gradient(90% 70% at 100% 100%,rgba(0,71,171,.55) 0%,rgba(0,71,171,0) 60%),linear-gradient(140deg,#0A1628 0%,#14254A 60%,#1B2C4F 100%);box-shadow:0 34px 70px -34px rgba(10,22,40,.7)}
.cw-stage .float{display:inline-flex;align-items:center;gap:7px}
.cw-stage .float .fdot{width:7px;height:7px;border-radius:50%;background:#16A06A;display:block}
.cw-stage .float .fdot.amber{background:#0047AB}
.cw-note{margin:12px 4px 0;font:500 11.5px/1.4 Manrope,sans-serif;color:rgba(255,255,255,.62)}

.cw{--accent:#1264A3;--side:#3F0E40;--rail:#2C0A2D;--sideText:#E6D9E7;--active:#1164A3;--ink:#1D1C1D;--mut:#616061;--line:#E8E8E8;--feed:#FFFFFF;
 font-family:Manrope,system-ui,sans-serif;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 30px 60px -28px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.06);color:var(--ink);text-align:left}
.cw svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cw .t-only{display:none}
.cw.teams .t-only{display:revert}
.cw.teams .cw-ri.t-only{display:flex}
.cw.teams .s-only{display:none!important}

/* window chrome */
.cw-chrome{display:flex;align-items:center;gap:12px;padding:8px 10px 8px 14px;background:var(--rail);color:#fff}
.cw-lights{display:flex;gap:6px}
.cw-lights i{width:10px;height:10px;border-radius:50%;background:#FF5F57}
.cw-lights i:nth-child(2){background:#FEBC2E}.cw-lights i:nth-child(3){background:#28C840}
.cw-search{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;height:26px;max-width:300px;margin-inline:auto;border-radius:7px;background:rgba(255,255,255,.14);font-size:12px;color:rgba(255,255,255,.82)}
.cw-search svg{width:13px;height:13px}
.cw-seg{display:flex;gap:2px;padding:2px;border-radius:999px;background:rgba(255,255,255,.12)}
.cw-seg button{display:flex;align-items:center;gap:5px;border:0;background:transparent;color:rgba(255,255,255,.85);font:600 11.5px/1 Manrope,sans-serif;padding:6px 10px;border-radius:999px;cursor:pointer}
.cw-seg button img{width:13px;height:13px}
.cw-seg button[aria-pressed=true]{background:#fff;color:#1D1C1D;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.cw-seg button:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* app layout */
.cw-app{display:grid;grid-template-columns:50px 128px minmax(0,1fr);height:562px}
.cw-rail{background:var(--rail);display:flex;flex-direction:column;align-items:center;gap:10px;padding:8px 0;color:rgba(255,255,255,.75)}
.cw-ws{width:32px;height:32px;border-radius:9px;background:#fff;color:#3F0E40;font:800 15px/32px Manrope,sans-serif;text-align:center;margin-bottom:4px}
.cw-ri{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:9.5px;font-weight:600}
.cw-ri svg{width:30px;height:30px;padding:7px;border-radius:9px}
.cw-ri.on svg{background:rgba(255,255,255,.2);color:#fff}
.cw-side{background:var(--side);color:var(--sideText);padding:12px 8px;font-size:12.5px;overflow:hidden}
.cw-wsname{display:flex;align-items:center;gap:4px;font:800 14px/1 Manrope,sans-serif;color:#fff;padding:2px 8px 12px;white-space:nowrap}
.cw-wsname svg{width:13px;height:13px}
.cw-sec{font-size:11.5px;font-weight:600;opacity:.75;padding:10px 8px 4px}
.cw-ch{display:flex;align-items:center;gap:7px;padding:4px 8px;border-radius:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.86}
.cw-ch b{font-weight:400;opacity:.8;width:10px}
.cw-ch.on{background:var(--active);color:#fff;opacity:1;font-weight:600}
.cw-ch.unread{color:#fff;opacity:1;font-weight:700}
.cw-ell{overflow:hidden;text-overflow:ellipsis;min-width:0}
.cw-mini{width:16px;height:16px;border-radius:4px;background:#0047AB;display:grid;place-items:center;flex:none}
.cw-mini.navy{background:#1B2C4F}
.cw-mini svg{width:10px;height:10px;fill:#fff;stroke:none}

.cw-main{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--feed)}
.cw-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px 0;border-bottom:1px solid var(--line)}
.cw-title{display:flex;flex-direction:column;gap:8px;min-width:0}
.cw-title>b{font:800 16px/1.1 Manrope,sans-serif;letter-spacing:-.01em;white-space:nowrap}
.cw-hash{color:var(--mut);font-weight:500;margin-right:2px}
.cw-tabs{display:flex;gap:16px;font-size:12px;color:var(--mut)}
.cw-tabs>span{padding-bottom:8px;border-bottom:2px solid transparent}
.cw-tabs>span.on{color:var(--ink);font-weight:700;border-color:var(--ink)}
.cw-members{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;padding:3px 7px 3px 4px;align-self:flex-start;margin-top:-2px}
.cw-members img{width:20px;height:20px;border-radius:5px;border:2px solid #fff;margin-left:-4px;object-fit:cover}
.cw-members img:first-child{margin-left:0}
.cw-members i{font:600 11.5px/1 Manrope,sans-serif;font-style:normal;color:var(--mut);margin-left:5px}

.cw-feed{flex:1;min-height:0;overflow-y:auto;padding:12px 14px 10px;display:flex;flex-direction:column;gap:14px;scroll-behavior:smooth;scrollbar-width:thin}
.cw-day{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:700;color:var(--ink)}
.cw-day:before,.cw-day:after{content:"";flex:1;height:1px;background:var(--line)}
.cw-day span{border:1px solid var(--line);border-radius:999px;padding:3px 10px}
.cw-m{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;animation:cwIn .5s ease both}
.cw-m.bot{animation-delay:.35s}
@keyframes cwIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.cw-pic{width:34px;height:34px;border-radius:8px;object-fit:cover}
.cw-pic.bot{background:#0047AB;display:grid;place-items:center}
.cw-pic.bot svg{width:18px;height:18px;fill:#fff;stroke:none}
.cw-who{display:flex;align-items:baseline;gap:7px;font-size:13.5px;line-height:1.2}
.cw-who b{font-weight:800}
.cw-who time{font-size:11px;color:var(--mut)}
.cw-app-tag{font:700 9.5px/1 Manrope,sans-serif;color:var(--mut);background:#EDEDED;border-radius:3px;padding:3px 4px;text-transform:uppercase;letter-spacing:.02em;align-self:center}
.cw-say{margin:3px 0 0;font-size:13.5px;line-height:1.45;color:var(--ink)}
.cw-say p{margin:0}
.cw-at{color:var(--accent);background:rgba(29,155,209,.12);border-radius:3px;padding:0 3px;font-weight:600}
.cw-card{margin-top:8px;border:1px solid var(--line);border-left:4px solid #0047AB;border-radius:8px;overflow:hidden;background:#fff}
.cw-row{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:9px;padding:6px 11px;border-top:1px solid #F0F0F0}
.cw-row:first-child{border-top:0}
.cw-dot{width:8px;height:8px;border-radius:50%}
.cw-dot.red{background:#E01E5A}.cw-dot.amber{background:#ECB22E}
.cw-inv{display:flex;flex-direction:column;min-width:0}
.cw-inv b{font-size:12.5px;font-weight:700}
.cw-inv small{font-size:11.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cw-amt{font-weight:700;font-variant-numeric:tabular-nums}
.cw-chip{font:700 10.5px/1 Manrope,sans-serif;border-radius:999px;padding:4px 8px;white-space:nowrap}
.cw-chip.red{background:#FDE7EE;color:#B0124A}.cw-chip.amber{background:#FDF3D7;color:#8A6100}
.cw-row.foot{grid-template-columns:16px 1fr;background:#F3FAF6;color:#126B45;font-size:12px;font-weight:600}
.cw-row.foot svg{width:15px;height:15px;stroke-width:2.4}
.cw-files{display:grid;grid-template-columns:1fr;gap:8px;margin-top:8px}
.cw-file{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:8px;padding:7px 9px;min-width:0;background:#fff}
.cw-file>span:nth-child(2){display:flex;flex-direction:column;min-width:0;flex:1}
.cw-file .status{margin-left:auto;flex:none}
.cw-file b{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cw-file small{font-size:11px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cw-ficon{flex:none;width:30px;height:30px;border-radius:6px;display:grid;place-items:center;font:800 9px/1 Manrope,sans-serif;color:#fff;background:#1D7044}
.cw-ficon.mail{background:#EAF0FB;color:#003580}
.cw-ficon.mail svg{width:16px;height:16px}
.cw-ask{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:9px}
.cw .status{margin:0;display:inline-flex;align-items:center;gap:6px;font:700 11.5px/1 Manrope,sans-serif;color:#A86A06;background:#FBF1DE;padding:6px 10px;border-radius:999px;white-space:nowrap}
.cw .status i{width:6px;height:6px;border-radius:50%;background:currentColor;display:block;flex:none}
.cw .status.ok{color:#126B45;background:#E6F4EC}
.cw-btns{display:flex;gap:6px}
.cw-btns button{font:700 12px/1 Manrope,sans-serif;border-radius:6px;padding:8px 11px;border:1px solid #D0D0D0;background:#fff;color:var(--ink);cursor:pointer}
.cw-btns button.go{background:#007A5A;border-color:#007A5A;color:#fff}
.cw-btns button:disabled{opacity:.45;cursor:default}
.cw-btns button:focus-visible,.demo-reset:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.cw-meta{display:flex;align-items:center;gap:10px;margin-top:8px;flex-wrap:wrap}
.cw-react{display:inline-flex;align-items:center;gap:4px;border:1px solid #1D9BD1;background:#E8F5FA;color:#1264A3;border-radius:999px;padding:2px 8px;font:700 11.5px/1.3 Manrope,sans-serif}
.cw-react svg{width:12px;height:12px;stroke:#007A5A;stroke-width:2.6}
.cw-replies{display:inline-flex;align-items:center;gap:6px;font-size:12px}
.cw-replies img{width:20px;height:20px;border-radius:5px;object-fit:cover}
.cw-replies b{color:var(--accent);font-weight:700}
.cw-replies small{color:var(--mut);font-size:11px}
.cw-follow .cw-say{background:#F3FAF6;border:1px solid #CDEBDC;border-radius:8px;padding:8px 10px}
.demo-reset{margin-top:6px;background:none;border:0;padding:0;font:600 12px/1 Manrope,sans-serif;color:var(--accent);text-decoration:underline;cursor:pointer}

.cw-compose{padding:0 14px 12px}
.cw-box{display:flex;align-items:center;justify-content:space-between;border:1px solid #C9C9C9;border-radius:9px;padding:9px 10px 9px 12px;font-size:13px;color:#8A8A8A}
.cw-tools{display:flex;align-items:center;gap:9px;color:#7A7A7A}
.cw-tools svg{width:16px;height:16px}
.cw-send{display:grid;place-items:center;width:26px;height:24px;border-radius:5px;background:#007A5A;color:#fff}
.cw-send svg{width:13px;height:13px}

/* ---------- Microsoft Teams skin ---------- */
.cw.teams{--accent:#5B5FC7;--rail:#EBEBEB;--side:#F5F5F5;--sideText:#424242;--active:#FFFFFF;--ink:#242424;--mut:#616161;--line:#E0E0E0;--feed:#F5F5F5;font-family:"Segoe UI",Manrope,system-ui,sans-serif}
.cw.teams .cw-chrome{color:#242424;border-bottom:1px solid #E0E0E0}
.cw.teams .cw-search{background:#fff;color:#616161;border:1px solid #E0E0E0;justify-content:flex-start;padding-left:10px}
.cw.teams .cw-seg{background:#fff;border:1px solid #E0E0E0}
.cw.teams .cw-seg button{color:#424242}
.cw.teams .cw-seg button[aria-pressed=true]{background:#5B5FC7;color:#fff}
.cw.teams .cw-seg button[aria-pressed=true] img{filter:brightness(0) invert(1)}
.cw.teams .cw-app{grid-template-columns:56px 128px minmax(0,1fr)}
.cw.teams .cw-rail{color:#616161;padding-top:10px;gap:8px}
.cw.teams .cw-ri.on svg{background:none;color:inherit}
.cw.teams .cw-ri{position:relative}
.cw.teams .cw-ri.t-sel{color:#5B5FC7}
.cw.teams .cw-ri.t-sel:before{content:"";position:absolute;left:-14px;top:6px;width:3px;height:20px;border-radius:2px;background:#5B5FC7}
.cw.teams .cw-ri.t-sel svg{background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.cw.teams .cw-side{border-right:1px solid #E0E0E0}
.cw.teams .cw-wsname{color:#242424;font-weight:700;font-size:15px}
.cw-team{display:flex;align-items:center;gap:8px;font-weight:600;padding:4px 8px 6px;white-space:nowrap}
.cw-tb{width:22px;height:22px;border-radius:5px;background:#5B5FC7;color:#fff;font:700 11px/22px "Segoe UI",Manrope,sans-serif;text-align:center;flex:none}
.cw.teams .cw-ch{padding-left:38px;opacity:1}
.cw.teams .cw-ch.on{color:#242424;box-shadow:0 1px 2px rgba(0,0,0,.08);font-weight:600}
.cw.teams .cw-ch.unread{color:#242424}
.cw.teams .cw-head{background:#fff;padding-top:9px}
.cw.teams .cw-title{flex-direction:row;align-items:center;gap:10px}
.cw.teams .cw-title .cw-tb{width:26px;height:26px;line-height:26px;font-size:12px}
.cw.teams .cw-title>b{font-weight:700;font-size:15px;padding-bottom:9px;margin-top:9px}
.cw.teams .cw-title>.cw-tb{margin-bottom:0;align-self:center;margin-top:-2px}
.cw.teams .cw-tabs{align-self:flex-end;margin-left:6px}
.cw.teams .cw-tabs>span{padding-bottom:9px}
.cw.teams .cw-tabs>span.on{color:#242424;border-color:#5B5FC7;font-weight:600}
.cw.teams .cw-tabs .cw-notes{display:none}
.cw.teams .cw-members{align-self:center;margin-top:-4px;border-radius:4px}
.cw.teams .cw-members img{border-radius:50%}
.cw.teams .cw-feed{padding:10px 10px;gap:10px}
.cw.teams .cw-day{display:none}
.cw.teams .cw-m{background:#fff;border-radius:6px;padding:9px 10px;box-shadow:0 1px 2px rgba(0,0,0,.08);grid-template-columns:32px minmax(0,1fr)}
.cw.teams .cw-pic{width:32px;height:32px;border-radius:50%}
.cw.teams .cw-pic.bot{border-radius:8px}
.cw.teams .cw-who b{font-weight:600}
.cw.teams .cw-app-tag{text-transform:none;background:#E8EBFA;color:#4F52B2;font-size:10.5px;font-weight:600;letter-spacing:0}
.cw.teams .cw-at{color:#4F52B2;background:#E8EBFA}
.cw.teams .cw-card{border-left:1px solid var(--line);border-top:3px solid #5B5FC7;border-radius:6px}
.cw.teams .cw-btns button{border-radius:4px;font-weight:600}
.cw.teams .cw-btns button.go{background:#5B5FC7;border-color:#5B5FC7}
.cw.teams .cw-react{background:#fff;border-color:#E0E0E0;color:#424242}
.cw.teams .cw-replies img{border-radius:50%}
.cw.teams .cw-replies b{color:#5B5FC7}
.cw.teams .cw-meta{border-top:1px solid #F0F0F0;padding-top:8px}
.cw.teams .cw-compose{background:var(--feed)}
.cw.teams .cw-box{background:#fff;border-color:#E0E0E0;border-bottom:2px solid #5B5FC7;border-radius:4px}
.cw.teams .cw-send{background:none;color:#5B5FC7}
.cw.teams .cw-follow .cw-say{background:#F0F0FA;border-color:#DCDDF5}

/* responsive */
@media (max-width:1180px){.r3-hero .hero-grid{grid-template-columns:1fr 1.1fr;gap:36px}.cw-app,.cw.teams .cw-app{grid-template-columns:52px minmax(0,1fr)}.cw-side{display:none}}
@media (max-width:980px){.r3-hero .hero-grid{grid-template-columns:1fr}.cw-stage{max-width:680px}.cw-app,.cw.teams .cw-app{grid-template-columns:52px 148px minmax(0,1fr)}.cw-side{display:block}}
@media (max-width:700px){.cw-app,.cw.teams .cw-app{grid-template-columns:minmax(0,1fr);height:auto}.cw-rail,.cw-side{display:none!important}.cw-lights{display:none}.cw-search{display:none}.cw-chrome{justify-content:flex-end}.cw-feed{overflow:visible;padding-inline:12px}.cw-head,.cw-compose{padding-inline:12px}.cw-files{grid-template-columns:1fr}.cw-row{grid-template-columns:8px minmax(0,1fr) auto;row-gap:4px}.cw-row .cw-chip{grid-column:2/4;justify-self:start}.cw-stage{padding:12px 12px 10px;border-radius:22px}.cw-members{display:none}}
@media (prefers-reduced-motion:reduce){.cw-m{animation:none}.cw-feed{scroll-behavior:auto}}

@media (max-width:700px){.cw-file{flex-wrap:wrap}.cw-file .status{margin-left:39px}}
.cw-m[hidden]{display:none!important}
@media (max-width:700px){.cw-file>span:nth-child(2){flex-basis:calc(100% - 40px)}}
