:root{
  --line:#222; --text:#fff; --muted:#8f8f8f; --soft:#bababa; --cream:#e9ebde; --accent:#df6803;
  --w:1200px;
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:#000;color:var(--text);font-family:"General Sans",system-ui,sans-serif;font-weight:500;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
.grain{position:relative;overflow:hidden}
.grain::after{content:"";position:absolute;inset:0;background-image:var(--grain);opacity:.55;mix-blend-mode:overlay;pointer-events:none;z-index:1}

/* buttons: square, white or translucent */
.btn{white-space:nowrap;display:inline-flex;align-items:center;justify-content:space-between;gap:12px;height:40px;padding:0 14px 0 16px;font-size:14px;font-weight:500;transition:background .2s,color .2s}
.btn::after{content:"";width:9px;height:12px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 12'%3E%3Cpath d='M1 1l5 5-5 5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M3 6h4' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .2s}
.btn:hover::after{transform:translateX(3px)}
.btn-w{background:#fff;color:#000}
.btn-w:hover{background:var(--cream)}
.btn-g{background:rgba(255,255,255,.2);color:#fff;backdrop-filter:blur(10px)}
.btn-g:hover{background:rgba(255,255,255,.3)}

/* nav */
nav{position:fixed;top:0;left:0;right:0;z-index:50;transition:background .3s}
nav.scrolled .in{background:#000b;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
nav .in{transition:background .3s}
nav .in{max-width:var(--w);margin:0 auto;height:90px;display:flex;align-items:center;justify-content:space-between;padding:0 0}
.logo{display:flex;align-items:center;gap:12px}
.logo img{height:30px;width:auto;display:block}
.logo span{font-size:20px;font-weight:500;letter-spacing:-.02em;color:#fff;padding-left:12px;border-left:1px solid rgba(255,255,255,.35);line-height:22px}
.nav-r{display:flex;align-items:center;gap:20px}
.burger{width:40px;height:40px;display:grid;place-items:center;cursor:pointer;margin-left:10px}
.burger i{display:block;width:20px;height:1.5px;background:#fff;box-shadow:0 6px 0 #fff;transform:translateY(-3px)}
.menu{position:fixed;inset:0;background:#000e;backdrop-filter:blur(20px);z-index:40;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:.3s}
.menu.open{opacity:1;pointer-events:auto}
.menu ul{list-style:none;text-align:center;display:flex;flex-direction:column;gap:18px;font-size:35px;font-weight:400}
.menu a:hover{color:var(--accent)}

/* hero */
.hero{height:675px;position:relative;overflow:hidden;background:#ff3b30}
.hero-art{position:absolute;inset:0;width:100%;height:100%}
.hero .copy{position:relative;z-index:3;max-width:var(--w);margin:0 auto;padding-top:207px}
.hero h1{font-size:66px;line-height:1;font-weight:500;letter-spacing:-.01em;max-width:740px}
.hero p{font-size:20px;line-height:24px;font-weight:400;max-width:440px;margin:22px 0 32px;text-shadow:0 1px 12px #0003}
.ctas{display:flex;gap:16px}
.ctas .btn{min-width:160px}

/* frame: vertical side borders + hatched separators */
.frame{max-width:var(--w);margin:0 auto;border-left:1px solid var(--line);border-right:1px solid var(--line)}
.hatch{height:62px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:repeating-linear-gradient(90deg,#1a1a1a 0 1px,transparent 1px 6px)}
.block{border-top:0}

.intro{padding:80px 40px 40px;font-size:30px;line-height:33px;font-weight:400}
.ind{display:grid;grid-template-columns:repeat(3,1fr);height:220px}
.ind-tile{position:relative;overflow:hidden;background:linear-gradient(160deg,#ff9a1f,#e66a00 60%,#c95600)}
.ind-tile svg{position:absolute;inset:0;width:100%;height:100%;z-index:0}
.ind-tile h3{position:absolute;left:30px;bottom:24px;font-size:16px;font-weight:500;letter-spacing:-.04em;color:var(--cream);z-index:2}
.ind-tile::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 30% -10%,#ffffff55,transparent 55%);z-index:1}

.split{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:470px}
.split h3{padding:0 40px;font-size:35px;line-height:38.5px;font-weight:400}
.split h3 span{color:var(--accent);display:block}
.split svg{width:100%;height:440px}

.center-h{padding:80px 40px 60px;text-align:center;font-size:35px;font-weight:400;line-height:38.5px;border-bottom:1px solid var(--line)}

.grid2{display:grid;grid-template-columns:1fr 1fr}
.cell{min-height:314px;border-bottom:1px solid var(--line);position:relative}
.cell:nth-child(odd){border-right:1px solid var(--line)}
.cell.txt{padding:72px 46px 40px}
.cell .k{color:var(--accent);font-size:16px;line-height:19.2px}
.cell h4{font-size:22px;font-weight:500;margin:20px 0 20px;line-height:1.2}
.cell p{color:var(--muted);font-size:16px;line-height:19.2px;max-width:508px}
.cell canvas{position:absolute;inset:0;width:100%;height:100%}
.cell.cta{overflow:hidden;padding:72px 40px;background:#120202}
.cell.cta .ring{position:absolute;inset:-30%;background:radial-gradient(circle at 60% 85%,transparent 0 22%,#ff1f3d 25%,#ff4a1a 30%,#7b2cff 37%,transparent 46%),radial-gradient(circle at 60% 85%,#ff2a2a33 0,transparent 60%);filter:blur(10px)}
.cell.cta h3{position:relative;z-index:2;font-size:35px;line-height:38.5px;font-weight:500;max-width:420px;margin-bottom:24px}
.cell.cta .btn{position:relative;z-index:2;width:144px}

.formats-head{padding:84px 40px 40px;text-align:center}
.formats-head h2{font-size:45px;line-height:49.5px;font-weight:400;max-width:720px;margin:0 auto}
.formats-head p{color:var(--soft);font-size:16px;margin-top:20px}
.formats{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.fmt{height:134px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-right:1px solid var(--line)}
.fmt:last-child{border-right:0}
.fmt b{font-size:28px;font-weight:600;letter-spacing:-.03em}
.fmt small{font-size:12px;color:var(--muted);font-family:ui-monospace,Menlo,monospace}
.formats-cta{display:flex;justify-content:center;gap:16px;padding:40px}
.formats-cta .btn{width:160px}

.adv-head{padding:60px 40px 40px}
.adv-head h4{font-size:30px;font-weight:400;line-height:33px}
.adv-head p{color:var(--soft);font-size:16px;margin-top:16px}
.adv{display:grid;grid-template-columns:repeat(5,1fr);height:247px}
.adv-tile{position:relative;overflow:hidden;cursor:default}
.adv-tile svg{position:absolute;inset:0;width:100%;height:100%;transition:transform .6s}
.adv-tile:hover svg{transform:scale(1.06)}
.adv-tile .t{position:absolute;left:20px;right:20px;bottom:20px;z-index:2;transition:transform .35s}
.adv-tile .t b{display:block;font-size:20px;line-height:24px;font-weight:500;text-shadow:0 1px 10px #0006}
.adv-tile .t span{display:block;font-size:14px;line-height:16.8px;max-height:0;opacity:0;overflow:hidden;transition:.35s;text-shadow:0 1px 8px #0008}
.adv-tile:hover .t span{max-height:90px;opacity:1;margin-top:8px}

.custom{height:290px;position:relative;overflow:hidden;padding:80px 40px;background:#c85a10}
.custom .swirl{position:absolute;inset:-40%;background:conic-gradient(from 20deg at 52% 50%,#ff8a1a,#7a2f0c,#ffb070,#d4520a,#ffe0b0,#a8400c,#ff8a1a);filter:blur(60px);animation:spin 40s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.custom h2{position:relative;z-index:2;font-size:45px;line-height:45px;font-weight:500;margin-bottom:46px}
.custom .btn{position:relative;z-index:2}

footer{border-top:1px solid var(--line)}
footer .in{max-width:var(--w);margin:0 auto;padding:100px 0 110px;display:flex;justify-content:space-between}
footer .logo{opacity:.55}
footer .copy{font-size:12px;color:var(--cream);opacity:.5;margin-top:14px;font-weight:400}
.fcols{display:flex;gap:40px}
.fcols ul{list-style:none;display:flex;flex-direction:column;gap:10px;font-size:16px;color:var(--soft)}
.fcols a:hover{color:#fff}

.rv{opacity:0;transform:translateY(20px);filter:blur(6px);transition:opacity .9s,transform .9s,filter .9s}
.rv.in{opacity:1;transform:none;filter:none}

@media (max-width:1240px){nav .in,.hero .copy,footer .in{padding-left:24px;padding-right:24px}.frame{margin:0 16px}}
@media (max-width:900px){
  .hero h1{font-size:44px}.ind,.split,.grid2,.formats{grid-template-columns:1fr}.ind{height:auto}.ind-tile{height:180px}
  .cell:nth-child(odd){border-right:0}.adv{grid-template-columns:1fr 1fr;height:auto}.adv-tile{height:220px}
  .fmt{border-right:0;border-bottom:1px solid var(--line)}footer .in{flex-direction:column;gap:40px}.nav-r .btn-w{display:none}
}

/* ---------- shared: hero art container ---------- */
.hero-art svg{width:100%;height:100%;display:block}
.hero .crumb{font-size:14px;color:#fff;opacity:.85;margin-bottom:22px;display:flex;gap:8px;align-items:center}
.hero .crumb a:hover{text-decoration:underline}
.hero.sub .copy{padding-top:190px}
.menu li.sub a{font-size:22px;color:var(--soft)}
.ind-tile{display:block;transition:filter .3s}
.ind-tile:hover{filter:brightness(1.08)}
.ind-tile h3::after{content:" \2192";opacity:0;transition:.25s}
.ind-tile:hover h3::after{opacity:1}
.cell .more{display:inline-block;margin-top:24px;font-size:14px;color:#fff;border-bottom:1px solid #444;padding-bottom:2px}
.cell .more:hover{border-color:var(--accent)}

/* ---------- product pages ---------- */
.specs{list-style:none;margin-top:26px;border-top:1px solid var(--line)}
.specs li{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--line);font-size:15px}
.specs li span{color:var(--muted)}
.code{position:absolute;inset:0;padding:40px 46px;font:13px/1.7 ui-monospace,Menlo,monospace;color:var(--soft);overflow:hidden;background:#050505}
.code .c{color:#555}.code .k{color:#e9ebde}.code .s{color:var(--accent)}.code .n{color:#8a7aff}
.code .tag{position:absolute;right:20px;top:18px;font-size:11px;color:var(--muted);border:1px solid var(--line);padding:3px 8px}
.steps{display:grid;grid-template-columns:repeat(3,1fr)}
.step{padding:48px 40px 56px;border-right:1px solid var(--line)}
.step:last-child{border-right:0}
.step .n{color:var(--accent);font-size:14px;font-family:ui-monospace,Menlo,monospace}
.step h4{font-size:22px;font-weight:500;margin:36px 0 14px}
.step p{color:var(--muted);font-size:16px;line-height:19.2px}
.faq{border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line);padding:0 40px}
.faq summary{list-style:none;cursor:pointer;padding:26px 0;font-size:20px;font-weight:500;display:flex;justify-content:space-between;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:26px;font-weight:400;color:var(--accent);transition:transform .25s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{color:var(--muted);font-size:16px;line-height:22px;padding:0 0 28px;max-width:760px}
.sec-h{padding:60px 40px 40px;border-bottom:1px solid var(--line)}
.sec-h h4{font-size:30px;font-weight:400;line-height:33px}
.sec-h p{color:var(--soft);font-size:16px;margin-top:16px}
.viz{width:100%;height:440px;display:block}
.viz-canvas{width:100%;height:440px;display:block}
.log{padding:40px;font:13px/1.95 ui-monospace,Menlo,monospace;color:var(--soft);height:440px;overflow:hidden}
.log .t{color:#444}.log .act{color:#fff}.log .ok{color:#7bd88f}.log .rw{color:var(--accent)}
.related{display:grid;grid-template-columns:repeat(3,1fr)}
@media (max-width:900px){.steps,.related{grid-template-columns:1fr}.step{border-right:0;border-bottom:1px solid var(--line)}}

/* ---------- marketplace ---------- */
.mk-stats{border-top:0}
.mk-bar{padding:32px 40px;display:flex;flex-wrap:wrap;gap:14px 20px;align-items:center;border-bottom:1px solid var(--line)}
.mk-bar input{flex:1 1 280px;height:40px;background:#0a0a0a;border:1px solid var(--line);color:#fff;font:inherit;font-size:14px;padding:0 14px;outline:none}
.mk-bar input:focus{border-color:#555}
.mk-chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{height:32px;padding:0 12px;border:1px solid var(--line);background:transparent;color:var(--soft);font:inherit;font-size:13px;cursor:pointer;transition:.2s}
.chip:hover{border-color:#555;color:#fff}
.chip.on{background:#fff;color:#000;border-color:#fff}
.mk-grid{display:grid;grid-template-columns:repeat(3,1fr)}
.mk-card{border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:30px 30px 26px;display:flex;flex-direction:column;gap:14px;min-height:300px;cursor:pointer;transition:background .2s;text-align:left;background:none;color:inherit;font:inherit}
.mk-card:nth-child(3n){border-right:0}
.mk-card:hover{background:#0b0b0b}
.mk-card:hover h4{color:var(--accent)}
.mk-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);font-family:ui-monospace,Menlo,monospace}
.mk-card .seg{font-size:13px;color:var(--accent)}
.mk-card h4{font-size:20px;font-weight:500;line-height:1.2;transition:color .2s}
.mk-card .stat{font-size:26px;font-weight:500;letter-spacing:-.02em}
.mk-card p{color:var(--muted);font-size:14px;line-height:18px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;flex:1}
.mk-tags{display:flex;flex-wrap:wrap;gap:6px}
.mk-tags span{font-size:11px;padding:3px 8px;background:#161616;color:var(--soft)}
.mk-empty{padding:60px 40px;color:var(--muted);text-align:center}
.mk-drawer{position:fixed;inset:0;z-index:60;pointer-events:none}
.mk-drawer-bg{position:absolute;inset:0;background:#000a;opacity:0;transition:.3s}
.mk-panel{position:absolute;top:0;right:0;bottom:0;width:min(520px,100%);background:#0a0a0a;border-left:1px solid var(--line);padding:48px 40px;overflow:auto;transform:translateX(100%);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.mk-drawer.open{pointer-events:auto}
.mk-drawer.open .mk-drawer-bg{opacity:1}
.mk-drawer.open .mk-panel{transform:none}
.mk-close{position:absolute;top:18px;right:22px;background:none;border:0;color:#fff;font-size:30px;cursor:pointer;line-height:1}
.mk-panel h3{font-size:30px;font-weight:500;line-height:1.1;margin:14px 0 18px}
.mk-panel .lead{color:var(--soft);font-size:16px;line-height:22px}
.mk-panel .btn{margin-top:28px;width:100%}
@media (max-width:1000px){.mk-grid{grid-template-columns:1fr 1fr}.mk-card:nth-child(3n){border-right:1px solid var(--line)}.mk-card:nth-child(2n){border-right:0}}
@media (max-width:640px){.mk-grid{grid-template-columns:1fr}.mk-card{border-right:0!important}}

/* ---------- mobile refinements ---------- */
@media (max-width:900px){
  .hero{height:auto;min-height:580px;padding-bottom:72px}
  .hero .copy,.hero.sub .copy{padding-top:150px}
  .split{min-height:0}
  .split > :first-child{padding-top:48px!important}
  .viz,.viz-canvas,.split svg{height:320px}
  .log{height:auto;min-height:300px;padding:28px 20px;font-size:12px;overflow-x:auto;white-space:nowrap}
  .formats{grid-template-columns:1fr 1fr}
  .fmt{height:110px;border-right:1px solid var(--line)}
  .fmt:nth-child(2n){border-right:0}
  .adv-tile:last-child{grid-column:span 2}
}
@media (max-width:600px){
  nav .in{height:72px}
  .nav-r .btn{display:none}
  .burger{margin-left:0}
  .logo img{height:26px}
  .logo span{font-size:18px}
  .frame{margin:0 12px}
  .hero h1{font-size:40px;line-height:1.05}
  .hero p{font-size:17px;line-height:22px}
  .ctas{flex-wrap:wrap;gap:10px}
  .ctas .btn{flex:1 1 150px;min-width:0}
  .intro{padding:48px 20px 32px;font-size:24px;line-height:28px}
  .split h3{font-size:26px;line-height:30px}
  .split > :first-child{padding-left:20px!important;padding-right:20px!important}
  .center-h{padding:48px 20px 36px;font-size:28px;line-height:32px}
  .cell{min-height:0}
  .cell.txt{padding:40px 20px}
  .cell.cta{padding:48px 20px;min-height:280px}
  .cell.cta h3{font-size:28px;line-height:32px}
  .cell canvas{position:relative;height:240px}
  .cell:has(canvas){min-height:240px}
  .code{position:relative;padding:28px 20px;font-size:11.5px;overflow-x:auto}
  .cell:has(.code){min-height:0!important}
  .formats-head{padding:48px 20px 32px}
  .formats-head h2{font-size:30px;line-height:34px}
  .fmt b{font-size:21px}
  .fmt small{font-size:11px;text-align:center;padding:0 8px}
  .formats-cta{padding:28px 20px;flex-wrap:wrap}
  .formats-cta .btn{flex:1 1 140px}
  .adv-head,.sec-h{padding:40px 20px 28px}
  .adv-head h4,.sec-h h4{font-size:26px}
  .adv-tile{height:190px}
  .adv-tile .t b{font-size:17px;line-height:21px}
  .step{padding:36px 20px 40px}
  .step h4{margin-top:20px}
  .faq details{padding:0 20px}
  .faq summary{font-size:17px;padding:22px 0;gap:16px}
  .custom{height:auto;padding:56px 20px}
  .custom h2{font-size:32px;line-height:36px;margin-bottom:32px}
  .ind-tile{height:150px}
  footer .in{padding:56px 20px 64px}
  .fcols{flex-wrap:wrap;gap:28px}
  /* marketplace */
  .mk-bar{padding:24px 20px;gap:12px}
  .mk-bar input{flex-basis:100%}
  .mk-chips{flex-wrap:nowrap;overflow-x:auto;margin:0 -20px;padding:0 20px 4px;scrollbar-width:none;width:calc(100% + 40px)}
  .mk-chips::-webkit-scrollbar{display:none}
  .chip{flex:none}
  .mk-card{min-height:0;padding:28px 20px}
  .mk-card .stat{font-size:22px}
  .mk-panel{padding:56px 20px 32px}
  .mk-panel h3{font-size:26px}
  .specs li{font-size:14px}
  .menu ul{font-size:28px;gap:14px}
}
.grid2 > *,.split > *,.mk-grid > *{min-width:0}
footer .fmail{margin-top:18px;font-size:15px;color:var(--soft)}
footer .fmail a:hover{color:#fff}

/* ---------- nav log-in link ---------- */
.nav-link{font-size:14px;color:var(--soft);transition:color .2s}
.nav-link:hover{color:#fff}

/* ---------- auth pages ---------- */
.hero.auth{height:auto;min-height:100vh;display:flex;align-items:center}
.auth-wrap{position:relative;z-index:3;width:100%;max-width:var(--w);margin:0 auto;padding:150px 0 90px;display:grid;grid-template-columns:1fr 440px;gap:60px;align-items:center}
.auth-copy h1{font-size:66px;line-height:1;font-weight:500;letter-spacing:-.01em;max-width:560px}
.auth-copy p{font-size:20px;line-height:24px;font-weight:400;max-width:440px;margin-top:22px;text-shadow:0 1px 12px #0003}
.auth-card{background:#000c;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid #ffffff1f;padding:40px;display:flex;flex-direction:column;gap:16px}
.auth-card h2{font-size:28px;font-weight:500;margin-bottom:8px}
.auth-card label,.crm-f{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--soft)}
.auth-card input,.crm-f input,.crm-f textarea,.crm-f select{height:44px;background:#0a0a0a;border:1px solid var(--line);color:#fff;font:inherit;font-size:15px;font-weight:400;padding:0 14px;outline:none;border-radius:0;transition:border-color .2s;width:100%}
.crm-f textarea{height:auto;padding:12px 14px;resize:vertical;line-height:1.45}
.auth-card input:focus,.crm-f input:focus,.crm-f textarea:focus,.crm-f select:focus{border-color:#666}
.auth-card small,.crm-f small{color:var(--muted);font-size:12px}
.auth-card .btn{width:100%;margin-top:6px;border:0;cursor:pointer;font-family:inherit}
.auth-card .btn:disabled{opacity:.6;cursor:wait}
.auth-err{color:#ff6a5a;font-size:14px;min-height:0}
.auth-err:empty{display:none}
.auth-alt{font-size:14px;color:var(--muted)}
.auth-alt a{color:#fff;border-bottom:1px solid #555}
.auth-alt a:hover{border-color:var(--accent)}

/* ---------- CRM app ---------- */
body.app{overflow:hidden}
.crm{display:grid;grid-template-columns:260px 1fr;grid-template-rows:72px 1fr;height:100vh;height:100dvh}
.crm[hidden]{display:none}
.crm-top{grid-column:1/-1;display:flex;align-items:center;gap:16px;padding:0 24px;border-bottom:1px solid var(--line);background:#000}
.crm-top .logo img{height:26px}.crm-top .logo span{font-size:18px}
.crm-burger{display:none;width:36px;height:36px;background:none;border:0;cursor:pointer;place-items:center}
.crm-burger i{display:block;width:18px;height:1.5px;background:#fff;box-shadow:0 6px 0 #fff;transform:translateY(-3px)}
.crm-user{margin-left:auto;position:relative}
.crm-user-btn{display:flex;align-items:center;gap:10px;background:none;border:0;color:#fff;font:inherit;font-size:14px;cursor:pointer}
.av{width:30px;height:30px;display:grid;place-items:center;background:var(--accent);color:#000;font-weight:600;font-size:13px}
.crm-pop{position:absolute;right:0;top:calc(100% + 12px);width:250px;background:#0a0a0a;border:1px solid var(--line);display:none;flex-direction:column;z-index:30}
.crm-pop.open{display:flex}
.crm-pop .who{padding:16px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:4px;font-size:14px}
.crm-pop .who span{color:var(--muted);font-size:12px;word-break:break-all}
.crm-pop button,.crm-pop a{background:none;border:0;color:var(--soft);font:inherit;font-size:14px;text-align:left;padding:12px 16px;cursor:pointer}
.crm-pop button:hover,.crm-pop a:hover{background:#141414;color:#fff}

.crm-side{border-right:1px solid var(--line);padding:24px 14px;overflow:auto;background:#000}
.crm-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;padding:0 10px;margin:8px 0 10px}
#adminNav .crm-label,.crm-label.sep{margin-top:30px}
.crm-nav{list-style:none;display:flex;flex-direction:column;gap:2px}
.crm-nav button{width:100%;text-align:left;background:none;border:0;color:var(--soft);font:inherit;font-size:14px;padding:10px;cursor:pointer;border-left:2px solid transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-nav button:hover{color:#fff;background:#0d0d0d}
.crm-nav button.on{color:#fff;background:#111;border-left-color:var(--accent)}
.crm-add{margin-top:10px;width:100%;text-align:left;background:none;border:1px dashed #333;color:var(--muted);font:inherit;font-size:13px;padding:10px;cursor:pointer}
.crm-add:hover{color:#fff;border-color:#555}
.crm-scrim{display:none}

.crm-main{overflow:auto;min-width:0}
.crm-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:40px 40px 28px;border-bottom:1px solid var(--line);position:relative;overflow:hidden}
.crm-head::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 60% 140% at 85% 0%,#df680333,transparent 70%);pointer-events:none}
.crm-head > *{position:relative}
.crm-kicker{color:var(--accent);font-size:13px;margin-bottom:10px}
.crm-head h1{font-size:40px;font-weight:500;line-height:1.05;letter-spacing:-.01em;word-break:break-word}
.crm-head-r{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.crm-head-r .btn{border:0;cursor:pointer;font-family:inherit;min-width:130px}
.crm-ghost{height:40px;padding:0 14px;background:none;border:1px solid var(--line);color:var(--soft);font:inherit;font-size:14px;cursor:pointer}
.crm-ghost:hover{color:#fff;border-color:#555}
.crm-stats{display:grid;grid-template-columns:repeat(5,1fr);border-bottom:1px solid var(--line)}
.crm-stats div{padding:22px 40px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:4px}
.crm-stats div:last-child{border-right:0}
.crm-stats b{font-size:30px;font-weight:500;letter-spacing:-.02em}
.crm-stats span{font-size:13px;color:var(--muted)}
.crm-bar{display:flex;gap:14px;padding:20px 40px 12px;align-items:center}
.crm-bar input{flex:1;height:40px;background:#0a0a0a;border:1px solid var(--line);color:#fff;font:inherit;font-size:14px;padding:0 14px;outline:none}
.crm-bar input:focus{border-color:#555}
.crm-views{display:flex;border:1px solid var(--line)}
.crm-views button{height:38px;padding:0 16px;background:none;border:0;color:var(--muted);font:inherit;font-size:13px;cursor:pointer}
.crm-views button.on{background:#fff;color:#000}
.crm-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 40px 20px;border-bottom:1px solid var(--line)}
.crm-chips .chip i{font-style:normal;opacity:.55;margin-left:4px}
.crm-bar[hidden],.crm-chips[hidden],.crm-stats[hidden]{display:none}

.pill{display:inline-flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap;padding:4px 9px;background:color-mix(in srgb,var(--c) 14%,transparent);color:color-mix(in srgb,var(--c) 70%,#fff)}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--c)}
.dim{color:var(--muted)}
.mono{font-family:ui-monospace,Menlo,monospace;font-size:12px}

.crm-table-wrap{overflow:auto}
.crm-table{width:100%;border-collapse:collapse;font-size:14px}
.crm-table th{text-align:left;font-weight:500;font-size:12px;color:var(--muted);padding:14px 16px;border-bottom:1px solid var(--line);white-space:nowrap;position:sticky;top:0;background:#000}
.crm-table td{padding:14px 16px;border-bottom:1px solid #161616;vertical-align:top;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crm-table th:first-child,.crm-table td:first-child{padding-left:40px}
.crm-table tbody tr{cursor:pointer;transition:background .15s}
.crm-table tbody tr:hover{background:#0b0b0b}
.crm-table tbody tr:hover .c-company{color:var(--accent)}
.crm-table tr.static{cursor:default}
.crm-table .c-code{font-family:ui-monospace,Menlo,monospace;font-size:12px;color:var(--soft)}
.crm-table .c-company{font-weight:500;color:#fff}
.crm-table td:not(.c-company):not(.c-code){color:var(--soft)}
.crm-status-sel{height:30px;background:color-mix(in srgb,var(--c) 14%,#000);color:#fff;border:1px solid color-mix(in srgb,var(--c) 45%,transparent);font:inherit;font-size:12px;padding:0 8px;cursor:pointer;outline:none}

.crm-board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(240px,1fr);gap:0;overflow-x:auto;min-height:420px}
.crm-col{border-right:1px solid var(--line);padding:16px 12px;display:flex;flex-direction:column;gap:10px;transition:background .15s}
.crm-col.over{background:#0e0e0e}
.crm-col-h{display:flex;justify-content:space-between;align-items:center;padding:0 4px 6px}
.crm-col-h i{font-style:normal;color:var(--muted);font-size:13px}
.crm-card{background:#0a0a0a;border:1px solid var(--line);color:inherit;font:inherit;text-align:left;padding:14px;display:flex;flex-direction:column;gap:6px;cursor:pointer;transition:border-color .2s}
.crm-card:hover{border-color:#555}
.crm-card b{font-size:15px;font-weight:500}
.crm-card .dim{font-size:13px;line-height:17px}

.crm-empty{padding:80px 40px;text-align:center;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:14px}
.crm-empty h4{color:#fff;font-size:22px;font-weight:500}
.crm-empty .btn{border:0;cursor:pointer;font-family:inherit;min-width:140px;margin-top:8px}

/* deal drawer */
.crm-panel{width:min(680px,100%);padding:40px;display:flex;flex-direction:column}
.crm-panel h3{margin:4px 0 14px;word-break:break-word}
.crm-status-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;margin-bottom:22px}
.crm-f.inline{flex-direction:row;align-items:center;gap:12px}
.crm-f.inline select{width:auto;height:38px;padding:0 10px;cursor:pointer}
.crm-tabs{display:flex;border-bottom:1px solid var(--line);margin:0 -40px 24px;padding:0 40px}
.crm-tabs button{background:none;border:0;border-bottom:2px solid transparent;color:var(--muted);font:inherit;font-size:14px;padding:12px 0;margin-right:26px;cursor:pointer}
.crm-tabs button.on{color:#fff;border-bottom-color:var(--accent)}
.crm-tabs button[hidden]{display:none}
.crm-tab{display:none}
.crm-tab.on{display:block}
.crm-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px}
.crm-f.wide{grid-column:1/-1}
.crm-history{list-style:none;display:flex;flex-direction:column}
.crm-history li{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}
.crm-panel .auth-err{margin-top:16px}
.crm-panel-actions{display:flex;gap:12px;align-items:center;margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.crm-panel-actions .btn{width:auto;margin:0;min-width:160px;border:0;cursor:pointer;font-family:inherit}
.crm-danger{margin-left:auto;background:none;border:0;color:#ff6a5a;font:inherit;font-size:14px;cursor:pointer;padding:10px}
.crm-danger:hover{text-decoration:underline}
.crm-danger[hidden]{display:none}

/* modal + toast */
.crm-modal{position:fixed;inset:0;z-index:80;background:#000b;display:grid;place-items:center;opacity:0;pointer-events:none;transition:opacity .2s;padding:20px}
.crm-modal.open{opacity:1;pointer-events:auto}
.crm-dialog{width:min(440px,100%);background:#0a0a0a;border:1px solid var(--line);padding:32px;display:flex;flex-direction:column;gap:16px}
.crm-dialog h3{font-size:24px;font-weight:500}
.crm-dialog #mBody{display:flex;flex-direction:column;gap:14px}
.crm-dialog-p{color:var(--soft);font-size:15px;line-height:21px}
.crm-dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:6px}
.crm-dialog-actions .btn{border:0;cursor:pointer;font-family:inherit;min-width:110px}
.btn-danger{background:#ff4a3a;color:#000}.btn-danger:hover{background:#ff7a6a}
.crm-toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);background:#fff;color:#000;font-size:14px;padding:12px 18px;opacity:0;pointer-events:none;transition:.25s;z-index:90;max-width:calc(100% - 40px)}
.crm-toast.show{opacity:1;transform:translate(-50%,0)}
.crm-toast.bad{background:#ff6a5a}

/* dashboard + profile */
#top:empty{display:none}
.crm-f[hidden]{display:none}
.crm-f input[readonly]{color:var(--muted);background:#050505;cursor:default}
.crm-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border-bottom:1px solid var(--line)}
.crm-tile{background:#000;padding:22px 40px 24px;display:flex;flex-direction:column;gap:6px;min-width:0}
.crm-tile span{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px}
.crm-tile span.dot::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--c);flex:none}
.crm-tile b{font-size:34px;font-weight:500;letter-spacing:-.02em;line-height:1.1}
.crm-tile small{font-size:12px;color:#666}
.crm-sec{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;padding:28px 40px 16px}
.crm-sec h2{font-size:20px;font-weight:500}
.crm-sec span{font-size:13px;color:var(--muted)}
.crm-sec-list{border-top:0;padding-bottom:4px}
.crm-funnel{list-style:none;padding:0 0 26px;border-bottom:1px solid var(--line)}
.crm-funnel li{display:grid;grid-template-columns:230px 1fr 44px 44px;gap:16px;align-items:center;padding:7px 40px;font-size:14px}
.crm-funnel b{font-weight:500;text-align:right}
.crm-funnel .dim{font-size:12px;text-align:right}
.crm-funnel-bar{height:10px;background:#111;display:block}
.crm-funnel-bar i{display:block;height:100%;background:var(--c);min-width:2px}
.crm-split{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line)}
.crm-split.one{grid-template-columns:1fr}
.crm-split > section{border-right:1px solid var(--line);min-width:0}
.crm-split > section:last-child{border-right:0}
.crm-act{list-style:none;padding-bottom:12px}
.crm-act li{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 40px;border-top:1px solid #161616;font-size:14px;cursor:pointer;transition:background .15s}
.crm-act li:hover{background:#0b0b0b}
.crm-act li.static{cursor:default;background:none}
.crm-act .what{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.crm-act .what b{font-weight:500}
.crm-act .when{font-size:13px;margin-left:auto}
.crm-table .sub{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:2px}
.crm-box{padding:28px 40px 32px;display:flex;flex-direction:column;gap:16px}
.crm-box h2{font-size:20px;font-weight:500}
.crm-box p{font-size:14px;line-height:20px}
.crm-box .btn{border:0;cursor:pointer;font-family:inherit;align-self:flex-start;min-width:170px}
.crm-box .btn:disabled{opacity:.6;cursor:wait}

@media (max-width:1240px){.auth-wrap{padding-left:24px;padding-right:24px}}
@media (max-width:900px){
  .auth-wrap{grid-template-columns:1fr;gap:36px;padding-top:130px}
  .auth-copy h1{font-size:44px}
  .crm{grid-template-columns:1fr}
  .crm-burger{display:grid}
  .crm-side{position:fixed;top:72px;left:0;bottom:0;width:280px;z-index:40;transform:translateX(-100%);transition:transform .3s}
  .side-open .crm-side{transform:none}
  .side-open .crm-scrim{display:block;position:fixed;inset:72px 0 0;background:#000a;z-index:35}
  .crm-stats{grid-template-columns:repeat(3,1fr)}
  .crm-stats div:nth-child(n+4){display:none}
  .crm-stats div:nth-child(3){border-right:0}
  .crm-split{grid-template-columns:1fr}
  .crm-split > section{border-right:0;border-bottom:1px solid var(--line)}
  .crm-split > section:last-child{border-bottom:0}
}
@media (max-width:600px){
  .auth-wrap{padding:110px 16px 56px}
  .auth-copy h1{font-size:36px}.auth-copy p{font-size:17px;line-height:22px}
  .auth-card{padding:28px 20px}
  .crm-top{padding:0 14px;gap:10px}
  .crm-user-btn #userName{display:none}
  .crm-head{flex-direction:column;align-items:flex-start;padding:28px 20px 22px}
  .crm-head h1{font-size:30px}
  .crm-head-r{width:100%}.crm-head-r .btn{flex:1}
  .crm-stats div{padding:16px 20px}
  .crm-stats b{font-size:24px}
  .crm-bar{padding:16px 20px 10px;flex-wrap:wrap}
  .crm-bar input{flex-basis:100%}
  .crm-chips{flex-wrap:nowrap;overflow-x:auto;padding:0 20px 16px;scrollbar-width:none}
  .crm-chips::-webkit-scrollbar{display:none}
  .crm-table th:first-child,.crm-table td:first-child{padding-left:20px}
  .crm-panel{padding:48px 20px 28px}
  .crm-tabs{margin:0 -20px 20px;padding:0 20px}
  .crm-fields{grid-template-columns:1fr}
  .crm-tiles{grid-template-columns:1fr 1fr}
  .crm-tile{padding:16px 20px 18px}
  .crm-tile b{font-size:26px}
  .crm-sec{padding:22px 20px 12px}
  .crm-funnel li{grid-template-columns:1fr 36px 36px;gap:6px 12px;padding:7px 20px}
  .crm-funnel .lbl{grid-column:1/-1}
  .crm-act li{padding:12px 20px}
  .crm-act .when{margin-left:0;width:100%}
  .crm-box{padding:22px 20px 26px}
  .crm-box .btn{align-self:stretch}
  .crm-panel-actions .btn{flex:1;min-width:0}
}
.hero .auth-card p{font-size:14px;line-height:20px;margin:0;max-width:none;text-shadow:none}
.crm-f-row{display:flex;gap:8px}
.crm-f-row input{flex:1;min-width:0}
.crm-f-row .crm-ghost{display:inline-flex;align-items:center;height:44px}
.crm-f-row .crm-ghost[hidden]{display:none}
.crm-sub{grid-column:1/-1;margin-top:14px;padding-top:20px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.crm-sub b{font-size:15px;font-weight:500}
.crm-sub span{font-size:13px;color:var(--muted);line-height:18px}
.crm-link{color:#fff;border-bottom:1px solid #555}
.crm-link:hover{border-color:var(--accent)}

/* ---------- CRM: badges, sample nudge, marketplace tab ---------- */
.crm-env{font-size:12px;color:var(--accent);border:1px solid #df680366;padding:4px 8px;text-transform:uppercase;letter-spacing:.08em}
.crm-env[hidden]{display:none}
.crm-nav .crm-badge-n{float:right;margin-top:-1px}
.crm-badge-n{font-style:normal;margin-left:auto;min-width:20px;height:20px;padding:0 6px;background:var(--accent);color:#000;font-size:11px;font-weight:600;display:inline-grid;place-items:center}
.crm-badge-n[hidden]{display:none}
.crm-tag{display:inline-flex;align-items:center;font-size:11px;white-space:nowrap;padding:3px 7px;border:1px solid var(--line);color:var(--soft)}
.crm-tag.on{border-color:#3ecf6e66;color:#8fe8ad}
.crm-tag.warn{border-color:#df680366;color:#f0a060}
.crm-cell-row{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}
.crm-nudge{font-size:13px;line-height:19px;color:#f3c39a;background:#df68031a;border-left:2px solid var(--accent);padding:12px 14px}
.crm-nudge[hidden]{display:none}
.crm-mk{display:flex;flex-direction:column;gap:18px}
.crm-mk > .dim{font-size:13px;line-height:19px}
.crm-mk .crm-fields[hidden]{display:none}
.crm-switch{display:flex;align-items:center;gap:12px;font-size:15px;cursor:pointer;user-select:none}
.crm-switch input{position:absolute;opacity:0;width:1px;height:1px}
.crm-switch-ui{width:40px;height:22px;border:1px solid #444;background:#111;position:relative;flex:none;transition:.2s}
.crm-switch-ui::after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;background:#777;transition:.2s}
.crm-switch input:checked + .crm-switch-ui{background:var(--accent);border-color:var(--accent)}
.crm-switch input:checked + .crm-switch-ui::after{left:21px;background:#000}
.crm-switch input:focus-visible + .crm-switch-ui{outline:1px solid #fff;outline-offset:2px}
.crm-mk-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.crm-mk-actions .btn{border:0;cursor:pointer;font-family:inherit;min-width:170px}
.crm-mk-actions .btn:disabled{opacity:.6;cursor:wait}
.mk-new{font-style:normal;color:var(--accent);margin-left:6px}

/* ---------- CRM: support chat + admin inbox ---------- */
.crm-chat{display:flex;flex-direction:column;min-width:0}
.crm-msgs{list-style:none;display:flex;flex-direction:column;gap:14px;padding:24px 40px;height:calc(100dvh - 72px - 150px - 190px);min-height:280px;overflow:auto;border-bottom:1px solid var(--line)}
.crm-msgs-empty{color:var(--muted);font-size:14px;line-height:20px;padding:20px 0;list-style:none}
.crm-msg{max-width:min(620px,85%);align-self:flex-start;background:#0a0a0a;border:1px solid var(--line);padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.crm-msg.me{align-self:flex-end;background:#141414;border-color:#2c2c2c}
.crm-msg.call{border-color:#df680399;background:#df680314}
.crm-msg-h{display:flex;gap:12px;justify-content:space-between;font-size:12px;color:var(--muted)}
.crm-msg-h b{color:#fff;font-weight:500}
.crm-msg-ref{font-size:12px;color:var(--accent)}
.crm-msg-t{font-size:14px;line-height:20px;font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere}
.crm-call{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.crm-call span{display:flex;flex-direction:column;gap:2px;font-size:14px}
.crm-call small{color:var(--muted);font-size:12px}
.crm-call .btn{min-width:130px}
.crm-compose{padding:16px 40px 20px;display:flex;flex-direction:column;gap:10px}
.crm-compose textarea{background:#0a0a0a;border:1px solid var(--line);color:#fff;font:inherit;font-size:15px;font-weight:400;padding:12px 14px;outline:none;resize:vertical;line-height:1.45;min-height:72px;border-radius:0}
.crm-compose textarea:focus,.crm-callform input:focus,.crm-compose select:focus{border-color:#666}
.crm-compose-r{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.crm-compose-r select{height:40px;background:#0a0a0a;border:1px solid var(--line);color:#fff;font:inherit;font-size:14px;padding:0 10px;max-width:340px;min-width:0;flex:0 1 auto;outline:none;border-radius:0}
.crm-compose-r .dim{font-size:12px;margin-left:auto}
.crm-compose-r .btn{border:0;cursor:pointer;font-family:inherit;min-width:120px}
.crm-compose-r .btn:disabled{opacity:.6;cursor:wait}
.crm-callform{display:flex;gap:10px;padding:0 40px 24px}
.crm-callform input{flex:1;min-width:0;height:40px;background:#0a0a0a;border:1px solid var(--line);color:#fff;font:inherit;font-size:14px;padding:0 14px;outline:none;border-radius:0}
.crm-inbox{display:grid;grid-template-columns:320px 1fr;min-height:0}
.crm-threads{list-style:none;border-right:1px solid var(--line);height:calc(100dvh - 72px - 150px);min-height:400px;overflow:auto}
.crm-threads .crm-msgs-empty{padding:24px 20px}
.crm-threads button{width:100%;text-align:left;background:none;border:0;border-bottom:1px solid #161616;border-left:2px solid transparent;color:var(--soft);font:inherit;padding:14px 18px;cursor:pointer;display:grid;grid-template-columns:1fr auto;gap:4px 10px}
.crm-threads button:hover{background:#0b0b0b}
.crm-threads button.on{background:#111;border-left-color:var(--accent)}
.crm-threads .crm-th-top{grid-column:1/-1;display:flex;justify-content:space-between;gap:10px;font-size:14px}
.crm-threads .crm-th-top b{font-weight:500;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crm-threads .crm-th-top span{font-size:12px;color:var(--muted);flex:none}
.crm-threads button.unread .crm-th-top b::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--accent);margin-right:8px;vertical-align:middle}
.crm-th-mail{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;grid-column:1}
.crm-th-pre{font-size:13px;color:var(--soft);font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;grid-column:1}
.crm-threads .crm-badge-n{grid-column:2;grid-row:2/4;align-self:center}
.crm-thread-h{display:flex;align-items:center;gap:14px;padding:16px 40px;border-bottom:1px solid var(--line)}
.crm-thread-h div{display:flex;flex-direction:column;gap:2px;min-width:0}
.crm-thread-h b{font-weight:500}
.crm-thread-h span{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.crm-back{display:none}
.crm-inbox .crm-msgs{height:calc(100dvh - 72px - 150px - 76px - 250px)}

/* ---------- admin host: non-admin gate ---------- */
.crm-gate{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:40px 20px;background:radial-gradient(ellipse 60% 50% at 70% 0%,#df680333,transparent 70%)}
.crm-gate[hidden]{display:none}
.crm-gate-in{max-width:520px;display:flex;flex-direction:column;gap:16px}
.crm-gate-in .logo{margin-bottom:24px}.crm-gate-in .logo img{height:26px}.crm-gate-in .logo span{font-size:18px}
.crm-gate-in .crm-kicker{margin:0}
.crm-gate-in h1{font-size:48px;font-weight:500;line-height:1}
.crm-gate-in p{color:var(--soft);font-size:16px;line-height:23px;font-weight:400}
.crm-gate-in p b{color:#fff;font-weight:500;overflow-wrap:anywhere}
.crm-gate-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.crm-gate-actions .btn{border:0;cursor:pointer;font-family:inherit;min-width:180px}

@media (max-width:900px){
  .crm-inbox{grid-template-columns:1fr}
  .crm-threads{border-right:0;height:auto;min-height:0}
  .crm-inbox.has-thread .crm-threads{display:none}
  .crm-inbox:not(.has-thread) > .crm-chat{display:none}
  .crm-back{display:inline-flex;align-items:center}
}
@media (max-width:600px){
  .crm-msgs{padding:18px 20px;height:calc(100dvh - 500px);min-height:240px}
  .crm-inbox .crm-msgs{height:calc(100dvh - 72px - 130px - 70px - 290px)}
  .crm-msg{max-width:92%}
  .crm-compose{padding:14px 20px 18px}
  .crm-compose-r select{flex:1 1 100%;max-width:none}
  .crm-compose-r .btn{flex:1}
  .crm-callform{padding:0 20px 20px;flex-wrap:wrap}
  .crm-callform .crm-ghost{flex:1}
  .crm-thread-h{padding:12px 20px}
  .crm-gate-in h1{font-size:36px}
  .crm-env{display:none}
}
.crm-fields > .wide{grid-column:1/-1}
.crm-gate-in .crm-kicker{color:var(--accent)}
